| Package | Description |
|---|---|
| org.onosproject.store.service |
Distributed core state management services.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V> EventuallyConsistentMapBuilder<K,V> |
StorageService.eventuallyConsistentMapBuilder()
Creates a new EventuallyConsistentMapBuilder.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withAntiEntropyPeriod(long period,
TimeUnit unit)
Configures how often to run the anti-entropy background task.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withBackgroundExecutor(ScheduledExecutorService executor)
Sets the executor to use for background anti-entropy tasks.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withCommunicationExecutor(ExecutorService executor)
Sets the executor to use for sending events to peers.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withEventExecutor(ExecutorService executor)
Sets the executor to use for processing events coming in from peers.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withFasterConvergence()
Configure anti-entropy to converge faster at the cost of doing more work
for each anti-entropy cycle.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withName(String name)
Sets the name of the map.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withPeerUpdateFunction(java.util.function.BiFunction<K,V,Collection<NodeId>> peerUpdateFunction)
Sets a function that can determine which peers to replicate updates to.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withPersistence()
Configure the map to persist data to disk.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withSerializer(org.onlab.util.KryoNamespace.Builder serializerBuilder)
Sets a serializer builder that can be used to create a serializer that
can serialize both the keys and values put into the map.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withTimestampProvider(java.util.function.BiFunction<K,V,Timestamp> timestampProvider)
Sets the function to use for generating timestamps for map updates.
|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withTombstonesDisabled()
Prevents this map from writing tombstones of items that have been
removed.
|
Copyright © 2015. All rights reserved.