Package org.onosproject.store.service
Class ConsistentMapBuilder<K,V>
- java.lang.Object
-
- org.onosproject.store.primitives.DistributedPrimitiveOptions<O>
-
- org.onosproject.store.service.ConsistentMapOptions<ConsistentMapBuilder<K,V>,K,V>
-
- org.onosproject.store.service.ConsistentMapBuilder<K,V>
-
- Type Parameters:
K
- type for map keyV
- type for map value
- All Implemented Interfaces:
DistributedPrimitiveBuilder<ConsistentMap<K,V>>
public abstract class ConsistentMapBuilder<K,V> extends ConsistentMapOptions<ConsistentMapBuilder<K,V>,K,V> implements DistributedPrimitiveBuilder<ConsistentMap<K,V>>
Builder forConsistentMap
instances.
-
-
Field Summary
-
Fields inherited from class org.onosproject.store.service.ConsistentMapOptions
compatibilityFunction
-
-
Constructor Summary
Constructors Constructor Description ConsistentMapBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract AsyncConsistentMap<K,V>
buildAsyncMap()
Builds an async consistent map based on the configuration options supplied to this builder.-
Methods inherited from class org.onosproject.store.service.ConsistentMapOptions
nullValues, purgeOnUninstall, withCompatibilityFunction, withNullValues, withPurgeOnUninstall
-
Methods inherited from class org.onosproject.store.primitives.DistributedPrimitiveOptions
applicationId, meteringEnabled, name, partitionsDisabled, readOnly, relaxedReadConsistency, revisionType, serializer, type, version, withApplicationId, withName, withRelaxedReadConsistency, withRevisionType, withSerializer, withUpdatesDisabled, withVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.onosproject.store.primitives.DistributedPrimitiveBuilder
build
-
-
-
-
Method Detail
-
buildAsyncMap
public abstract AsyncConsistentMap<K,V> buildAsyncMap()
Builds an async consistent map based on the configuration options supplied to this builder.- Returns:
- new async consistent map
- Throws:
java.lang.RuntimeException
- if a mandatory parameter is missing
-
-