Package org.apache.cassandra.db
Class ExpirationDateOverflowHandling
java.lang.Object
org.apache.cassandra.db.ExpirationDateOverflowHandling
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcomputeLocalExpirationTime(long nowInSec, int timeToLive) This method computes theCell.localDeletionTime(), maybe capping to the maximum representable value which isCell.MAX_DELETION_TIME.static voidmaybeApplyExpirationDateOverflowPolicy(TableMetadata metadata, int ttl, boolean isDefaultTTL)
-
Field Details
-
policy
-
MAXIMUM_EXPIRATION_DATE_EXCEEDED_WARNING
- See Also:
-
MAXIMUM_EXPIRATION_DATE_EXCEEDED_REJECT_MESSAGE
- See Also:
-
-
Constructor Details
-
ExpirationDateOverflowHandling
public ExpirationDateOverflowHandling()
-
-
Method Details
-
maybeApplyExpirationDateOverflowPolicy
public static void maybeApplyExpirationDateOverflowPolicy(TableMetadata metadata, int ttl, boolean isDefaultTTL) throws InvalidRequestException - Throws:
InvalidRequestException
-
computeLocalExpirationTime
public static long computeLocalExpirationTime(long nowInSec, int timeToLive) This method computes theCell.localDeletionTime(), maybe capping to the maximum representable value which isCell.MAX_DELETION_TIME. Please note that theExpirationDateOverflowHandling.ExpirationDateOverflowPolicyis applied duringmaybeApplyExpirationDateOverflowPolicy(org.apache.cassandra.schema.TableMetadata, int, boolean), so if the request was not denied it means its expiration date should be capped. See CASSANDRA-14092
-