public class ReplicatedMapAbsentDelegatingForIteration<K,V> extends Object implements MapAbsentEntry<K,V>, SetAbsentEntry<K>, net.openhft.chronicle.hash.impl.stage.replication.ReplicableEntryDelegating
| Constructor and Description |
|---|
ReplicatedMapAbsentDelegatingForIteration() |
| Modifier and Type | Method and Description |
|---|---|
Data<K> |
absentKey()
Returns the key is going to be inserted into the
ChronicleHash. |
WrappedValueInstanceDataHolderAccess<K,V,?> |
context()
Returns the context, in which the entry is going to be inserted into the hash.
|
net.openhft.chronicle.hash.replication.ReplicableEntry |
d() |
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. |
public ReplicatedMapAbsentDelegatingForIteration()
@NotNull public WrappedValueInstanceDataHolderAccess<K,V,?> context()
HashAbsentEntrycontext in interface HashAbsentEntry<K>context in interface MapAbsentEntry<K,V>context in interface SetAbsentEntry<K>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)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)@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>public net.openhft.chronicle.hash.replication.ReplicableEntry d()
d in interface net.openhft.chronicle.hash.impl.stage.replication.ReplicableEntryDelegatingCopyright © 2024. All rights reserved.