|
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 BinaryEntry| Method Detail |
|---|
public 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()
BinaryEntryNote: This method is a shortcut for the getBackingMapContext.getManagerContext() call.
getContext in interface BinaryEntryjava.lang.UnsupportedOperationExceptionpublic 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 nulljava.lang.UnsupportedOperationException
public 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 BackingMap 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 eventjava.lang.UnsupportedOperationExceptionpublic Binary getOriginalBinaryValue()
BinaryEntrygetOriginalBinaryValue in interface BinaryEntryjava.lang.UnsupportedOperationExceptionpublic ObservableMap getBackingMap()
BinaryEntryNote: 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 BinaryEntryjava.lang.UnsupportedOperationExceptionpublic BackingMapContext getBackingMapContext()
BinaryEntrybacking map context for the cache that this Entry corresponds to.getBackingMapContext in interface BinaryEntryjava.lang.UnsupportedOperationExceptionpublic void expire(long cMillis)
BinaryEntryNote: 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 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 | |||||||