Package org.infinispan.metadata.impl
Class InternalMetadataImpl
java.lang.Object
org.infinispan.metadata.impl.InternalMetadataImpl
- All Implemented Interfaces:
InternalMetadata
,Metadata
@Deprecated(forRemoval=true,
since="10.0")
public class InternalMetadataImpl
extends Object
implements InternalMetadata
Deprecated, for removal: This API element is subject to removal in a future version.
- Since:
- 6.0
- Author:
- Mircea Markus
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version.Nested classes/interfaces inherited from interface org.infinispan.metadata.Metadata
Metadata.Builder
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.InternalMetadataImpl
(Metadata actual, long created, long lastUsed) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionactual()
Deprecated, for removal: This API element is subject to removal in a future version.builder()
Deprecated, for removal: This API element is subject to removal in a future version.Returns an instance ofMetadata.Builder
which can be used to build new instances ofMetadata
instance which are full copies of thisMetadata
.long
created()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.long
Deprecated, for removal: This API element is subject to removal in a future version.static Metadata
extractMetadata
(Metadata metadata) Deprecated, for removal: This API element is subject to removal in a future version.int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isEmpty()
Deprecated, for removal: This API element is subject to removal in a future version.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.boolean
isExpired
(long now) Deprecated, for removal: This API element is subject to removal in a future version.long
lastUsed()
Deprecated, for removal: This API element is subject to removal in a future version.long
lifespan()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds.long
maxIdle()
Deprecated, for removal: This API element is subject to removal in a future version.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()
Deprecated, for removal: This API element is subject to removal in a future version.version()
Deprecated, for removal: This API element is subject to removal in a future 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, wait
Methods inherited from interface org.infinispan.metadata.Metadata
updateCreationTimestamp
-
Constructor Details
-
InternalMetadataImpl
public InternalMetadataImpl()Deprecated, for removal: This API element is subject to removal in a future version. -
InternalMetadataImpl
Deprecated, for removal: This API element is subject to removal in a future version. -
InternalMetadataImpl
Deprecated, for removal: This API element is subject to removal in a future version. -
InternalMetadataImpl
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
lifespan
public long lifespan()Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Metadata
Returns the version of the cache entry with which this metadata object is associated. -
isEmpty
public boolean isEmpty()Deprecated, for removal: This API element is subject to removal in a future version.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. -
builder
Deprecated, for removal: This API element is subject to removal in a future version.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
-
created
public long created()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
created
in interfaceInternalMetadata
-
lastUsed
public long lastUsed()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
lastUsed
in interfaceInternalMetadata
-
actual
Deprecated, for removal: This API element is subject to removal in a future version. -
expiryTime
public long expiryTime()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
expiryTime
in interfaceInternalMetadata
-
isExpired
public boolean isExpired(long now) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isExpired
in interfaceInternalMetadata
-
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
extractMetadata
Deprecated, for removal: This API element is subject to removal in a future version.
-