public class ReplicatedMapAbsentDelegating<K,V> extends Object implements Absent<K,V>
| Constructor and Description |
|---|
ReplicatedMapAbsentDelegating() |
| Modifier and Type | Method and Description |
|---|---|
Data<K> |
absentKey()
Returns the key is going to be inserted into the
ChronicleHash. |
MapQuery<K,V,?> |
context()
Returns the context, in which the entry is going to be inserted into the hash.
|
Data<V> |
defaultValue()
Returns the default (or nil) value, that should be inserted into the map in
this context.
|
void |
doInsert()
Inserts
the new key into the set. |
void |
doInsert(Data<V> value)
Inserts the new entry into the map, of the key and the given
value. |
@NotNull public MapQuery<K,V,?> context()
HashAbsentEntrycontext in interface HashAbsentEntry<K>context in interface Absent<K,V>context in interface MapAbsentEntry<K,V>context in interface SetAbsentEntry<K>public void doInsert()
SetAbsentEntrythe new key into the set.
This method is the default implementation for SetEntryOperations.insert(
SetAbsentEntry), which might be customized over the default.
doInsert in interface SetAbsentEntry<K>SetEntryOperations.insert(SetAbsentEntry)public void doInsert(Data<V> value)
MapAbsentEntryvalue.
This method is the default implementation for MapEntryOperations.insert(
MapAbsentEntry, Data), which might be customized over the default.
doInsert in interface MapAbsentEntry<K,V>value - the value to insert into the map along with the keyMapEntryOperations.insert(MapAbsentEntry, Data)@NotNull public Data<V> defaultValue()
MapAbsentEntryChronicleMap.acquireUsing(K, V) operation
implementation, i. e. MapMethods.acquireUsing(net.openhft.chronicle.map.MapQueryContext<K, V, R>, net.openhft.chronicle.map.ReturnValue<V>).
This method if the default implementation for DefaultValueProvider.defaultValue(MapAbsentEntry),
which might be customized over the default.
defaultValue in interface MapAbsentEntry<K,V>DefaultValueProvider.defaultValue(MapAbsentEntry)@NotNull public Data<K> absentKey()
HashAbsentEntryChronicleHash.absentKey in interface HashAbsentEntry<K>Copyright © 2024. All rights reserved.