Package org.infinispan.server.memcached
Class MemcachedMetadata
- java.lang.Object
-
- org.infinispan.server.memcached.MemcachedMetadata
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.metadata.Metadata
Metadata.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected longflagsprotected EntryVersionversion
-
Constructor Summary
Constructors Constructor Description MemcachedMetadata(long flags, EntryVersion version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metadata.Builderbuilder()Returns an instance ofMetadata.Builderwhich can be used to build new instances ofMetadatainstance which are full copies of thisMetadata.booleanequals(Object o)inthashCode()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.StringtoString()EntryVersionversion()Returns the version of the cache entry with which this metadata object is associated.
-
-
-
Field Detail
-
flags
protected final long flags
-
version
protected final EntryVersion version
-
-
Constructor Detail
-
MemcachedMetadata
public MemcachedMetadata(long flags, EntryVersion version)
-
-
Method Detail
-
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
public EntryVersion version()
Description copied from interface:MetadataReturns the version of the cache entry with which this metadata object is associated.
-
builder
public Metadata.Builder 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
-
-