|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.InvocableMapHelper.RoutingMapTriggerEntry
com.tangosol.util.InvocableMapHelper.RoutingBinaryEntry
protected static class InvocableMapHelper.RoutingBinaryEntry
BinaryEntry wrapper that routes the getValue()/getBinaryValue() calls onto getOriginalValue()/getOriginalBinaryValue().
Field Summary |
---|
Fields inherited from class com.tangosol.util.InvocableMapHelper.RoutingMapTriggerEntry |
---|
m_entry |
Constructor Summary | |
---|---|
protected |
InvocableMapHelper.RoutingBinaryEntry(BinaryEntry entry) Construct a routing entry. |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class com.tangosol.util.InvocableMapHelper.RoutingMapTriggerEntry |
---|
extract, getKey, getOriginalValue, getValue, isOriginalPresent, isPresent, remove, setValue, setValue, update |
Methods inherited from interface com.tangosol.util.BinaryEntry |
---|
getOriginalValue, remove, setValue |
Methods inherited from interface com.tangosol.util.InvocableMap.Entry |
---|
getKey, getValue, isPresent, setValue, update |
Methods inherited from interface com.tangosol.util.QueryMap.Entry |
---|
extract |
Methods inherited from interface java.util.Map.Entry |
---|
equals, hashCode |
Constructor Detail |
---|
protected InvocableMapHelper.RoutingBinaryEntry(BinaryEntry entry)
entry
- the underlying BinaryEntryMethod Detail |
---|
public 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
java.lang.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 nulljava.lang.UnsupportedOperationException
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 BackingMap
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 eventjava.lang.UnsupportedOperationException
public Binary getOriginalBinaryValue()
BinaryEntry
getOriginalBinaryValue
in interface BinaryEntry
java.lang.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
java.lang.UnsupportedOperationException
public BackingMapContext getBackingMapContext()
BinaryEntry
backing map context
for the cache that this Entry corresponds to.getBackingMapContext
in interface BinaryEntry
java.lang.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 expirejava.lang.UnsupportedOperationException
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |