K
- type for map keyV
- type for map valuepublic abstract class ConsistentMapOptions<O extends ConsistentMapOptions<O,K,V>,K,V> extends DistributedPrimitiveOptions<O>
ConsistentMap
instances.Modifier and Type | Field and Description |
---|---|
protected BiFunction<V,Version,V> |
compatibilityFunction |
Constructor and Description |
---|
ConsistentMapOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
nullValues()
Returns whether null values are supported by the map.
|
boolean |
purgeOnUninstall()
Returns if map entries need to be cleared when owning application is uninstalled.
|
O |
withCompatibilityFunction(BiFunction<V,Version,V> compatibilityFunction)
Sets a compatibility function on the map.
|
O |
withNullValues()
Enables null values in the map.
|
O |
withPurgeOnUninstall()
Clears map contents when the owning application is uninstalled.
|
applicationId, meteringEnabled, name, partitionsDisabled, readOnly, relaxedReadConsistency, revisionType, serializer, type, version, withApplicationId, withName, withRelaxedReadConsistency, withRevisionType, withSerializer, withUpdatesDisabled, withVersion
protected BiFunction<V,Version,V> compatibilityFunction
public O withNullValues()
public O withPurgeOnUninstall()
public O withCompatibilityFunction(BiFunction<V,Version,V> compatibilityFunction)
compatibilityFunction
- the compatibility functionpublic boolean nullValues()
true
if null values are supported; false
otherwisepublic boolean purgeOnUninstall()
true
if yes; false
otherwise.