Class EventuallyConsistentMapBuilderImpl<K,V>
- java.lang.Object
-
- org.onosproject.store.atomix.primitives.impl.EventuallyConsistentMapBuilderImpl<K,V>
-
- All Implemented Interfaces:
org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>
public class EventuallyConsistentMapBuilderImpl<K,V> extends java.lang.Object implements org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>Eventually consistent map builder.
-
-
Constructor Summary
Constructors Constructor Description EventuallyConsistentMapBuilderImpl(org.onosproject.cluster.NodeId localNodeId, org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator, org.onosproject.persistence.PersistenceService persistenceService, java.util.function.Supplier<java.util.List<org.onosproject.cluster.NodeId>> peersSupplier, java.util.function.Supplier<java.util.List<org.onosproject.cluster.NodeId>> bootstrapPeersSupplier)Creates a new eventually consistent map builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onosproject.store.service.EventuallyConsistentMap<K,V>build()org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withAntiEntropyPeriod(long period, java.util.concurrent.TimeUnit unit)org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withBackgroundExecutor(java.util.concurrent.ScheduledExecutorService executor)org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withCommunicationExecutor(java.util.concurrent.ExecutorService executor)org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withEventExecutor(java.util.concurrent.ExecutorService executor)org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withFasterConvergence()org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withName(java.lang.String name)org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withPeerUpdateFunction(java.util.function.BiFunction<K,V,java.util.Collection<org.onosproject.cluster.NodeId>> peerUpdateFunction)org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withPersistence()org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withSerializer(org.onlab.util.KryoNamespace serializer)org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withSerializer(org.onlab.util.KryoNamespace.Builder serializerBuilder)org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withTimestampProvider(java.util.function.BiFunction<K,V,org.onosproject.store.Timestamp> timestampProvider)org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V>withTombstonesDisabled()
-
-
-
Constructor Detail
-
EventuallyConsistentMapBuilderImpl
public EventuallyConsistentMapBuilderImpl(org.onosproject.cluster.NodeId localNodeId, org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator, org.onosproject.persistence.PersistenceService persistenceService, java.util.function.Supplier<java.util.List<org.onosproject.cluster.NodeId>> peersSupplier, java.util.function.Supplier<java.util.List<org.onosproject.cluster.NodeId>> bootstrapPeersSupplier)Creates a new eventually consistent map builder.- Parameters:
localNodeId- local node idclusterCommunicator- cluster communication servicepersistenceService- persistence servicepeersSupplier- supplier for peersbootstrapPeersSupplier- supplier for peers for bootstrap
-
-
Method Detail
-
withName
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withName(java.lang.String name)
-
withSerializer
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withSerializer(org.onlab.util.KryoNamespace.Builder serializerBuilder)
-
withSerializer
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withSerializer(org.onlab.util.KryoNamespace serializer)
-
withTimestampProvider
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withTimestampProvider(java.util.function.BiFunction<K,V,org.onosproject.store.Timestamp> timestampProvider)
-
withEventExecutor
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withEventExecutor(java.util.concurrent.ExecutorService executor)
-
withCommunicationExecutor
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withCommunicationExecutor(java.util.concurrent.ExecutorService executor)
-
withBackgroundExecutor
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withBackgroundExecutor(java.util.concurrent.ScheduledExecutorService executor)
-
withPeerUpdateFunction
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withPeerUpdateFunction(java.util.function.BiFunction<K,V,java.util.Collection<org.onosproject.cluster.NodeId>> peerUpdateFunction)
-
withTombstonesDisabled
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withTombstonesDisabled()
-
withAntiEntropyPeriod
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withAntiEntropyPeriod(long period, java.util.concurrent.TimeUnit unit)
-
withFasterConvergence
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withFasterConvergence()
-
withPersistence
public org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> withPersistence()
-
-