Interface RedisPersistentEntity<T>
- Type Parameters:
T-
- All Superinterfaces:
Aware,EnvironmentAware,Iterable<RedisPersistentProperty>,KeyValuePersistentEntity<T,,RedisPersistentProperty> MutablePersistentEntity<T,,RedisPersistentProperty> PersistentEntity<T,RedisPersistentProperty>
- All Known Implementing Classes:
BasicRedisPersistentEntity
public interface RedisPersistentEntity<T>
extends KeyValuePersistentEntity<T,RedisPersistentProperty>
Redis specific
PersistentEntity.- Since:
- 1.7
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionGet thePersistentPropertythat is annotated withTimeToLive.Get theTimeToLiveAccessorassociated with the entity.booleandefault booleanMethods inherited from interface org.springframework.context.EnvironmentAware
setEnvironmentMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity
getKeySpaceMethods inherited from interface org.springframework.data.mapping.model.MutablePersistentEntity
addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
Method Details
-
getTimeToLiveAccessor
TimeToLiveAccessor getTimeToLiveAccessor()Get theTimeToLiveAccessorassociated with the entity.- Returns:
- never null.
-
hasExplictTimeToLiveProperty
boolean hasExplictTimeToLiveProperty()- Returns:
- true when a property is annotated with
TimeToLive. - Since:
- 1.8
-
getExplicitTimeToLiveProperty
Get thePersistentPropertythat is annotated withTimeToLive.- Returns:
- can be null.
- Since:
- 1.8
-
isExpiring
default boolean isExpiring()- Returns:
- true if the entity could potentially expire.
- Since:
- 2.3
-