Package org.infinispan.server.memcached
Class MemcachedMetadata
java.lang.Object
org.infinispan.metadata.EmbeddedMetadata
org.infinispan.metadata.EmbeddedMetadata.EmbeddedLifespanExpirableMetadata
org.infinispan.server.memcached.MemcachedMetadata
- All Implemented Interfaces:
Metadata
@ProtoTypeId(5000)
public class MemcachedMetadata
extends EmbeddedMetadata.EmbeddedLifespanExpirableMetadata
Memcached metadata information.
- Since:
- 5.3
- Author:
- Galder ZamarreƱo
-
Nested Class Summary
Nested classes/interfaces inherited from class org.infinispan.metadata.EmbeddedMetadata
EmbeddedMetadata.EmbeddedExpirableMetadata, EmbeddedMetadata.EmbeddedLifespanExpirableMetadata, EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata, EmbeddedMetadata.Externalizer
-
Field Summary
Fields inherited from class org.infinispan.metadata.EmbeddedMetadata
EMPTY, version
-
Constructor Summary
ConstructorDescriptionMemcachedMetadata
(int flags, long lifespan, NumericVersion numericVersion, SimpleClusteredVersion clusteredVersion) -
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
.boolean
int
hashCode()
boolean
isEmpty()
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.toString()
Methods inherited from class org.infinispan.metadata.EmbeddedMetadata.EmbeddedLifespanExpirableMetadata
lifespan
Methods inherited from class org.infinispan.metadata.EmbeddedMetadata
getClusteredVersion, getNumericVersion, maxIdle, version
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.metadata.Metadata
updateCreationTimestamp
-
Field Details
-
flags
@ProtoField(number=5, defaultValue="0") public final int flags
-
-
Constructor Details
-
MemcachedMetadata
@ProtoFactory public MemcachedMetadata(int flags, long lifespan, NumericVersion numericVersion, SimpleClusteredVersion clusteredVersion)
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:Metadata
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.- Specified by:
isEmpty
in interfaceMetadata
- Overrides:
isEmpty
in classEmbeddedMetadata.EmbeddedLifespanExpirableMetadata
- Returns:
- if this metadata has no actual data to store
-
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
- Overrides:
builder
in classEmbeddedMetadata.EmbeddedLifespanExpirableMetadata
- Returns:
- instance of
Metadata.Builder
-
equals
- Overrides:
equals
in classEmbeddedMetadata.EmbeddedLifespanExpirableMetadata
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEmbeddedMetadata.EmbeddedLifespanExpirableMetadata
-
toString
- Overrides:
toString
in classEmbeddedMetadata.EmbeddedLifespanExpirableMetadata
-