public static class BucketInfo.AgeDeleteRule extends BucketInfo.DeleteRule
Deprecated. Use a LifecycleRule
with a DeleteLifecycleAction
and use
LifecycleCondition.Builder.setAge
instead.
For example, new DeleteLifecycleAction(1)
is equivalent to new
LifecycleRule( LifecycleAction.newDeleteAction(),
LifecycleCondition.newBuilder().setAge(1).build()))
Delete rule class that sets a Time To Live for blobs in the bucket. See Also: Object Lifecycle Management
Constructors
AgeDeleteRule(int daysToLive) (deprecated)
public AgeDeleteRule(int daysToLive)
Creates an AgeDeleteRule
object.
Parameter | |
---|---|
Name | Description |
daysToLive | int blobs' Time To Live expressed in days. The time when the age condition is
considered to be satisfied is computed by adding |
Methods
getDaysToLive() (deprecated)
public int getDaysToLive()
Returns | |
---|---|
Type | Description |
int |