public class ReplicatedMapEntryDelegating<K,V> extends Object implements MapEntry<K,V>, net.openhft.chronicle.hash.impl.stage.replication.ReplicableEntryDelegating
| Constructor and Description |
|---|
ReplicatedMapEntryDelegating() |
| Modifier and Type | Method and Description |
|---|---|
MapContext<K,V,?> |
context()
Returns the context, in which the entry is accessed.
|
net.openhft.chronicle.hash.replication.ReplicableEntry |
d() |
void |
doRemove()
Removes the entry from the map.
|
void |
doReplaceValue(Data<V> newValue)
Replaces the entry's value with the given
newValue. |
Data<K> |
key()
Returns the entry key.
|
Data<V> |
value()
Returns the entry value.
|
@NotNull public MapContext<K,V,?> context()
HashEntry@NotNull public Data<K> key()
HashEntry@NotNull public Data<V> value()
MapEntrypublic void doReplaceValue(Data<V> newValue)
MapEntrynewValue.
This method is the default implementation for MapEntryOperations.replaceValue(
MapEntry, Data), which might be customized over the default.
doReplaceValue in interface MapEntry<K,V>newValue - the value to be put into the map instead of the current
valuepublic void doRemove()
MapEntry
This method is the default implementation for MapEntryOperations.remove(MapEntry),
which might be customized over the default.
public net.openhft.chronicle.hash.replication.ReplicableEntry d()
d in interface net.openhft.chronicle.hash.impl.stage.replication.ReplicableEntryDelegatingCopyright © 2024. All rights reserved.