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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOriginalValue, isValueChanged, isValueLoaded, isValueRemoved, isValueUpdated, remove, setValuegetKey, getValue, getValue, isPresent, isSynthetic, setValue, updateextract, extractFromKey, extractFromValuecomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodeprotected RoutingBinaryEntry(BinaryEntry entry)
entry - the underlying BinaryEntrypublic Binary getBinaryKey()
getBinaryKey in interface BinaryEntrypublic Binary getBinaryValue()
getBinaryValue in interface BinaryEntrypublic Serializer getSerializer()
Serializer that is used to serialize/deserialize this
entry.getSerializer in interface BinaryEntrySerializer that is used to serialize/deserialize this
entrypublic boolean isReadOnly()
isReadOnly in interface BinaryEntrypublic BackingMapManagerContext getContext()
BinaryEntry
Note: This method is a shortcut for the getBackingMapContext.getManagerContext()
call.
getContext in interface BinaryEntryUnsupportedOperationExceptionpublic void updateBinaryValue(Binary binValue)
BinaryEntryPassing 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 BinaryEntrybinValue - new binary value to be stored in this entry or nullUnsupportedOperationExceptionpublic void updateBinaryValue(Binary binValue, boolean fSynthetic)
BinaryEntryPassing 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 BinaryEntrybinValue - 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 eventUnsupportedOperationExceptionpublic Binary getOriginalBinaryValue()
BinaryEntrygetOriginalBinaryValue in interface BinaryEntryUnsupportedOperationExceptionpublic 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 BinaryEntryUnsupportedOperationExceptionpublic BackingMapContext getBackingMapContext()
BinaryEntrybacking map context
for the cache that this Entry corresponds to.getBackingMapContext in interface BinaryEntryUnsupportedOperationExceptionpublic 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 BinaryEntrycMillis - 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 expireUnsupportedOperationExceptionpublic long getExpiry()
BinaryEntryBinaryEntry.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 BinaryEntryUnsupportedOperationException