protected static class InvocableMapHelper.RoutingBinaryEntry extends InvocableMapHelper.RoutingMapTriggerEntry implements BinaryEntry
m_entry
Modifier | Constructor and Description |
---|---|
protected |
RoutingBinaryEntry(BinaryEntry entry)
Construct a routing entry.
|
Modifier and Type | Method and Description |
---|---|
void |
expire(long cMillis)
Update the entry with the specified expiry delay.
|
ObservableMap |
getBackingMap()
Obtain a reference to the backing map that this Entry corresponds to.
|
BackingMapContext |
getBackingMapContext()
Obtain a reference to the
backing map context
for the cache that this Entry corresponds to. |
Binary |
getBinaryKey()
Return a raw binary key for this entry.
|
Binary |
getBinaryValue()
Return an OriginalBinaryValue from the underlying entry.
|
BackingMapManagerContext |
getContext()
Return the context this entry operates within.
|
long |
getExpiry()
Return the number of milliseconds remaining before the specified entry
is scheduled to expire.
|
Binary |
getOriginalBinaryValue()
Return a raw original binary value for this entry.
|
Serializer |
getSerializer()
Return a
Serializer that is used to serialize/deserialize this
entry. |
boolean |
isReadOnly()
Check whether this BinaryEntry allows data modification operations.
|
void |
updateBinaryValue(Binary binValue)
Update the binary value for this entry.
|
void |
updateBinaryValue(Binary binValue,
boolean fSynthetic)
Update the binary value for this entry.
|
extract, getKey, getOriginalValue, getValue, isOriginalPresent, isPresent, isSynthetic, remove, setValue, setValue, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOriginalValue, isValueChanged, isValueLoaded, isValueRemoved, isValueUpdated, remove, setValue
getKey, getValue, getValue, isPresent, isSynthetic, setValue, update
extract, extractFromKey, extractFromValue
comparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode
protected RoutingBinaryEntry(BinaryEntry entry)
entry
- the underlying BinaryEntrypublic Binary getBinaryKey()
getBinaryKey
in interface BinaryEntry
public Binary getBinaryValue()
getBinaryValue
in interface BinaryEntry
public Serializer getSerializer()
Serializer
that is used to serialize/deserialize this
entry.getSerializer
in interface BinaryEntry
Serializer
that is used to serialize/deserialize this
entrypublic boolean isReadOnly()
isReadOnly
in interface BinaryEntry
public BackingMapManagerContext getContext()
BinaryEntry
Note: This method is a shortcut for the getBackingMapContext.getManagerContext()
call.
getContext
in interface BinaryEntry
UnsupportedOperationException
public void updateBinaryValue(Binary binValue)
BinaryEntry
Passing a non-null binary is functionally equivalent to:
setValue(getContext().getValueFromInternalConverter().convert(binValue));Passing null value is functionally equivalent to removing the entry.
remove(false);
updateBinaryValue
in interface BinaryEntry
binValue
- new binary value to be stored in this entry or nullUnsupportedOperationException
public void updateBinaryValue(Binary binValue, boolean fSynthetic)
BinaryEntry
Passing a non-null binary is functionally equivalent to:
setValue(getContext().getValueFromInternalConverter().convert(binValue));Passing null value is functionally equivalent to removing the entry.
remove(false);This method will bypass any
CacheStore
or
BinaryEntryStore
implementations, iff fSynthetic is true and the
backing map associated with this entry is a ReadWriteBackingMap.updateBinaryValue
in interface BinaryEntry
binValue
- new binary value to be stored in this entry or nullfSynthetic
- pass true only if the insertion into or
modification of the Map should be treated as a
synthetic eventUnsupportedOperationException
public Binary getOriginalBinaryValue()
BinaryEntry
getOriginalBinaryValue
in interface BinaryEntry
UnsupportedOperationException
public ObservableMap getBackingMap()
BinaryEntry
Note: This method is a shortcut for the getBackingMapContext().getBackingMap()
call. As of Coherence 3.7, the returned type has been narrowed to
ObservableMap.
getBackingMap
in interface BinaryEntry
UnsupportedOperationException
public BackingMapContext getBackingMapContext()
BinaryEntry
backing map context
for the cache that this Entry corresponds to.getBackingMapContext
in interface BinaryEntry
UnsupportedOperationException
public void expire(long cMillis)
BinaryEntry
Note: this method only has an effect only if the associated backing map
implements the CacheMap
interface
expire
in interface BinaryEntry
cMillis
- the number of milliseconds until the entry will expire;
pass CacheMap.EXPIRY_DEFAULT
to use the default expiry setting;
pass CacheMap.EXPIRY_NEVER
to indicate that the entry should
never expireUnsupportedOperationException
public long getExpiry()
BinaryEntry
BinaryEntry.expire(long)
method has been called,
the returned value will reflect the requested expiry delay. Otherwise if
the entry exists
, the returned value will represent
the time remaining until the entry expires (or CacheMap.EXPIRY_NEVER
if the
entry will never expire). If the entry does not exist, CacheMap.EXPIRY_DEFAULT
will be returned.
This method will make a "best effort" attempt to determine the
expiry time remaining. In some cases, it may not be possible to determine
the expiry (e.g. the backing-map does not implement the CacheMap
interface), in which case
CacheMap.EXPIRY_DEFAULT
will be returned.
getExpiry
in interface BinaryEntry
UnsupportedOperationException