public interface MarshallableEntryFactory<K,V>
MarshallableEntry.| Modifier and Type | Method and Description |
|---|---|
MarshallableEntry<K,V> |
create(ByteBuffer key,
ByteBuffer valueBytes)
metadataBytes defaults to null
created defaults to -1
lastUsed defaults to -1 |
MarshallableEntry<K,V> |
create(ByteBuffer key,
ByteBuffer valueBytes,
ByteBuffer metadataBytes,
ByteBuffer internalMetadataBytes,
long created,
long lastUsed)
Creates a
MarshallableEntry using already marshalled objects as arguments |
default MarshallableEntry<K,V> |
create(InternalCacheEntry<K,V> e)
Creates a
MarshallableEntry instance from an InternalCacheEntry. |
MarshallableEntry<K,V> |
create(Object key)
value defaults to null |
MarshallableEntry<K,V> |
create(Object key,
ByteBuffer valueBytes,
ByteBuffer metadataBytes,
ByteBuffer internalMetadataBytes,
long created,
long lastUsed)
Creates a
MarshallableEntry using a object key and already marshalled value/metadata as arguments |
default MarshallableEntry<K,V> |
create(Object key,
InternalCacheValue<V> v)
|
MarshallableEntry<K,V> |
create(Object key,
MarshalledValue value)
Creates a
MarshallableEntry using a Key MarshalledValue. |
MarshallableEntry<K,V> |
create(Object key,
Object value)
metadata defaults to null created defaults to -1 lastUsed defaults to -1 |
MarshallableEntry<K,V> |
create(Object key,
Object value,
Metadata metadata,
PrivateMetadata internalMetadata,
long created,
long lastUsed)
Creates a
MarshallableEntry using non-marshalled POJOs as arguments |
MarshallableEntry<K,V> |
getEmpty() |
MarshallableEntry<K,V> create(ByteBuffer key, ByteBuffer valueBytes)
metadataBytes defaults to null
created defaults to -1
lastUsed defaults to -1MarshallableEntry<K,V> create(ByteBuffer key, ByteBuffer valueBytes, ByteBuffer metadataBytes, ByteBuffer internalMetadataBytes, long created, long lastUsed)
MarshallableEntry using already marshalled objects as argumentskey - ByteBuffer of serialized key objectvalueBytes - ByteBuffer of serialized value objectmetadataBytes - ByteBuffer of serialized metadata objectinternalMetadataBytes{@link - ByteBuffer} of serialized internal metadata objectcreated - timestamp of when the entry was created, -1 means this value is ignoredlastUsed - timestamp of last time entry was accessed in memoryMarshallableEntry instance that lazily handles unmarshalling of keys, values and metadata via the
MarshallableEntry.getKey(), MarshallableEntry.getValue() and MarshallableEntry.getMetadata() methods.MarshallableEntry<K,V> create(Object key, ByteBuffer valueBytes, ByteBuffer metadataBytes, ByteBuffer internalMetadataBytes, long created, long lastUsed)
MarshallableEntry using a object key and already marshalled value/metadata as argumentskey - entry keyvalueBytes - ByteBuffer of serialized value objectmetadataBytes - ByteBuffer of serialized metadata objectinternalMetadataBytes - ByteBuffer of serialized internal metadata objectcreated - timestamp of when the entry was created, -1 means this value is ignoredlastUsed - timestamp of last time entry was accessed in memoryMarshallableEntry instance that lazily handles unmarshalling of values and metadata via the MarshallableEntry.getKey(), MarshallableEntry.getValue() and MarshallableEntry.getMetadata()
methods.MarshallableEntry<K,V> create(Object key)
value defaults to nullcreate(Object, Object)MarshallableEntry<K,V> create(Object key, Object value)
metadata defaults to null created defaults to -1 lastUsed defaults to -1MarshallableEntry<K,V> create(Object key, Object value, Metadata metadata, PrivateMetadata internalMetadata, long created, long lastUsed)
MarshallableEntry using non-marshalled POJOs as argumentskey - entry keyvalue - entry valuemetadata - entry metadatainternalMetadata - entry internal metadatacreated - timestamp of when the entry was created, -1 means this value is ignoredlastUsed - timestamp of last time entry was accessed in memoryMarshallableEntry instance that lazily handles serialization of keys, values and metadata via the
MarshallableEntry.getKeyBytes(), MarshallableEntry.getValueBytes() and MarshallableEntry.getMetadataBytes() methods.default MarshallableEntry<K,V> create(Object key, InternalCacheValue<V> v)
key - the entry key.v - the InternalCacheValue.default MarshallableEntry<K,V> create(InternalCacheEntry<K,V> e)
MarshallableEntry instance from an InternalCacheEntry.e - the InternalCacheEntry.MarshallableEntry<K,V> create(Object key, MarshalledValue value)
MarshallableEntry using a Key MarshalledValue.key - entry keyvalue - a MarshalledValue whose values are used to populate MarshallableEntry.getValueBytes(),
MarshallableEntry.getMetadataBytes(), MarshallableEntry.created() and MarshallableEntry.lastUsed() fields.MarshallableEntry instance that lazily handles unmarshalling of keys, values and metadata via the
MarshallableEntry.getKey(), MarshallableEntry.getValue() and MarshallableEntry.getMetadata() methods.{@link - NullPointerException} if the provided MarshalledValue is null.MarshallableEntry<K,V> getEmpty()
MarshallableEntry instance.Copyright © 2022 JBoss by Red Hat. All rights reserved.