public interface CouchbasePersistentEntity<T> extends PersistentEntity<T,CouchbasePersistentProperty>
| Modifier and Type | Field and Description |
|---|---|
static long |
TTL_IN_SECONDS_INCLUSIVE_END
The threshold (inclusive) after which expiry should be expressed as a Unix UTC time.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getExpiry()
Deprecated.
|
Duration |
getExpiryDuration()
Returns the expiration time of the entity.
|
boolean |
isTouchOnRead()
Flag for using getAndTouch operations for reads, resetting the expiration (if one was set) when the entity is
directly read (eg. findOne, findById).
|
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulationforEach, iterator, spliteratorstatic final long TTL_IN_SECONDS_INCLUSIVE_END
@Deprecated int getExpiry()
The Couchbase format for expiration time is: - for TTL < 31 days (<= 30 * 24 * 60 * 60): expressed as a TTL in seconds - for TTL > 30 days: expressed as Unix UTC time of expiry (number of SECONDS since the Epoch)
Duration getExpiryDuration()
The Couchbase format for expiration time is: - for TTL < 31 days (<= 30 * 24 * 60 * 60): expressed as a TTL in seconds - for TTL > 30 days: expressed as Unix UTC time of expiry (number of SECONDS since the Epoch)
boolean isTouchOnRead()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.