Package org.infinispan.container.entries
Class RemoteMetadata
java.lang.Object
org.infinispan.container.entries.RemoteMetadata
- All Implemented Interfaces:
Metadata
This is a metadata type used by scattered cache during state transfer. The address points to node which has last
known version of given entry: During key transfer RemoteMetadata is created and overwritten if another response
with higher version comes. During value transfer the address is already final and we request the value + metadata
only from this node.
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.metadata.Metadata
Metadata.Builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns an instance ofMetadata.Builder
which can be used to build new instances ofMetadata
instance which are full copies of thisMetadata
.long
lifespan()
Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds.long
maxIdle()
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.metadata.Metadata
updateCreationTimestamp
-
Constructor Details
-
RemoteMetadata
-
-
Method Details
-
getAddress
-
lifespan
public long lifespan()Description copied from interface:Metadata
Returns 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:Metadata
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. -
version
Description copied from interface:Metadata
Returns the version of the cache entry with which this metadata object is associated. -
builder
Description copied from interface:Metadata
Returns an instance ofMetadata.Builder
which can be used to build new instances ofMetadata
instance which are full copies of thisMetadata
.- Specified by:
builder
in interfaceMetadata
- Returns:
- instance of
Metadata.Builder
-
toString
-