|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BinaryEntry
Map.Entry that internally stores both key and value in a Binary format and uses an underlying Serializer to convert it to and from an Object view.
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 a raw binary value for this entry. |
BackingMapManagerContext |
getContext() Return the context this entry operates within. |
Binary |
getOriginalBinaryValue() Return a raw original binary value for this entry. |
java.lang.Object |
getOriginalValue() Return an original 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. |
Methods inherited from interface com.tangosol.util.InvocableMap.Entry |
---|
getKey, getValue, isPresent, remove, setValue, setValue, update |
Methods inherited from interface com.tangosol.util.QueryMap.Entry |
---|
extract |
Methods inherited from interface java.util.Map.Entry |
---|
equals, hashCode |
Method Detail |
---|
Binary getBinaryKey()
Binary getBinaryValue()
Serializer getSerializer()
Serializer
that is used to serialize/deserialize this entry.Serializer
that is used to serialize/deserialize this entryBackingMapManagerContext getContext()
Note: This method is a shortcut for the getBackingMapContext.getManagerContext()
call.
void updateBinaryValue(Binary binValue)
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);
binValue
- a raw binary value to for this entry or nulljava.lang.Object getOriginalValue()
Binary getOriginalBinaryValue()
ObservableMap getBackingMap()
Note: This method is a shortcut for the getBackingMapContext.getBackingMap()
call. As of Coherence 3.7, the returned type has been narrowed to ObservableMap.
BackingMapContext getBackingMapContext()
backing map context
for the cache that this Entry corresponds to.void expire(long cMillis)
Note: this method only has an effect only if the associated backing map implements the CacheMap
interface
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 expireboolean isReadOnly()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |