K
- type for map keyV
- type for map valuepublic abstract class ConsistentMapBuilder<K,V> extends DistributedPrimitiveBuilder<ConsistentMapBuilder<K,V>,ConsistentMap<K,V>>
ConsistentMap
instances.Constructor and Description |
---|
ConsistentMapBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract AsyncConsistentMap<K,V> |
buildAsyncMap()
Builds an async consistent map based on the configuration options
supplied to this builder.
|
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.
|
ConsistentMapBuilder<K,V> |
withNullValues()
Enables null values in the map.
|
ConsistentMapBuilder<K,V> |
withPurgeOnUninstall()
Clears map contents when the owning application is uninstalled.
|
applicationId, build, meteringEnabled, name, partitionsDisabled, readOnly, relaxedReadConsistency, serializer, type, withApplicationId, withMeteringDisabled, withName, withRelaxedReadConsistency, withSerializer, withUpdatesDisabled
public ConsistentMapBuilder<K,V> withNullValues()
public ConsistentMapBuilder<K,V> withPurgeOnUninstall()
public boolean nullValues()
true
if null values are supported; false
otherwisepublic boolean purgeOnUninstall()
true
if yes; false
otherwise.public abstract AsyncConsistentMap<K,V> buildAsyncMap()
java.lang.RuntimeException
- if a mandatory parameter is missing