Class EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata
java.lang.Object
org.infinispan.metadata.EmbeddedMetadata
org.infinispan.metadata.EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata
- All Implemented Interfaces:
Metadata
- Enclosing class:
EmbeddedMetadata
@ProtoTypeId(7)
public static class EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata
extends EmbeddedMetadata
- Since:
- 5.3
- Author:
- Galder Zamarreño
-
Nested Class Summary
Nested classes/interfaces inherited from class org.infinispan.metadata.EmbeddedMetadata
EmbeddedMetadata.Builder, EmbeddedMetadata.EmbeddedExpirableMetadata, EmbeddedMetadata.EmbeddedLifespanExpirableMetadata, EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata, EmbeddedMetadata.Externalizer -
Field Summary
Fields inherited from class org.infinispan.metadata.EmbeddedMetadata
EMPTY, version -
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.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()Methods inherited from class org.infinispan.metadata.EmbeddedMetadata
getClusteredVersion, getNumericVersion, lifespan, versionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.metadata.Metadata
updateCreationTimestamp
-
Method Details
-
maxIdle
@ProtoField(number=3, defaultValue="-1") 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.- Specified by:
maxIdlein interfaceMetadata- Overrides:
maxIdlein classEmbeddedMetadata- Returns:
- maximum idle time of the entry in number of milliseconds
-
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.- Specified by:
isEmptyin interfaceMetadata- Overrides:
isEmptyin classEmbeddedMetadata- Returns:
- if this metadata has no actual data to store
-
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- Overrides:
builderin classEmbeddedMetadata- Returns:
- instance of
Metadata.Builder
-
equals
- Overrides:
equalsin classEmbeddedMetadata
-
hashCode
public int hashCode()- Overrides:
hashCodein classEmbeddedMetadata
-
toString
- Overrides:
toStringin classEmbeddedMetadata
-