Class EmbeddedMetadata
java.lang.Object
org.infinispan.metadata.EmbeddedMetadata
- All Implemented Interfaces:
Metadata
- Direct Known Subclasses:
EmbeddedMetadata.EmbeddedExpirableMetadata,EmbeddedMetadata.EmbeddedLifespanExpirableMetadata,EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns an instance ofMetadata.Builderwhich can be used to build new instances ofMetadatainstance which are full copies of thisMetadata.booleaninthashCode()booleanisEmpty()Returns whether this metadata is effectively empty, that is that persisting or replicating it to another node would be no different then sending a null metadata object.longlifespan()Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds.longmaxIdle()Returns the the maximum amount of time that the cache entry associated with this metadata object is allowed to be idle for before it is considered as expired, in milliseconds.toString()version()Returns the version of the cache entry with which this metadata object is associated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.metadata.Metadata
updateCreationTimestamp
-
Field Details
-
EMPTY
-
version
-
-
Method Details
-
lifespan
public long lifespan()Description copied from interface:MetadataReturns the lifespan of the cache entry with which this metadata object is associated, in milliseconds. Negative values are interpreted as unlimited lifespan. -
maxIdle
public long maxIdle()Description copied from interface:MetadataReturns the the maximum amount of time that the cache entry associated with this metadata object is allowed to be idle for before it is considered as expired, in milliseconds. -
version
Description copied from interface:MetadataReturns the version of the cache entry with which this metadata object is associated. -
getNumericVersion
-
getClusteredVersion
-
isEmpty
public boolean isEmpty()Description copied from interface:MetadataReturns whether this metadata is effectively empty, that is that persisting or replicating it to another node would be no different then sending a null metadata object. -
builder
Description copied from interface:MetadataReturns an instance ofMetadata.Builderwhich can be used to build new instances ofMetadatainstance which are full copies of thisMetadata.- Specified by:
builderin interfaceMetadata- Returns:
- instance of
Metadata.Builder
-
equals
-
hashCode
-
toString
-