K
- type of the key in ChronicleMap
V
- type of the value in ChronicleMap
public interface MapAbsentEntry<K,V> extends HashAbsentEntry<K>
ChronicleMap
.MapEntryOperations
,
MapQueryContext.absentEntry()
Modifier and Type | Method and Description |
---|---|
MapContext<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(Data<V> value)
Inserts the new entry into the map, of the key and the given
value . |
absentKey
@NotNull MapContext<K,V,?> context()
HashAbsentEntry
context
in interface HashAbsentEntry<K>
void doInsert(Data<V> value)
value
.
This method is the default implementation for MapEntryOperations.insert(
MapAbsentEntry, Data)
, which might be customized over the default.
value
- the value to insert into the map along with the key
IllegalStateException
- if some locking/state conditions required to perform insertion
operation are not metMapEntryOperations.insert(MapAbsentEntry, Data)
@NotNull Data<V> defaultValue()
ChronicleMap.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.
Copyright © 2023. All rights reserved.