Package org.onosproject.store.service
Class TopicOptions<O extends TopicOptions<O,T>,T>
- java.lang.Object
-
- org.onosproject.store.primitives.DistributedPrimitiveOptions<O>
-
- org.onosproject.store.service.TopicOptions<O,T>
-
- Type Parameters:
T
- type for topic value
- Direct Known Subclasses:
TopicBuilder
public abstract class TopicOptions<O extends TopicOptions<O,T>,T> extends DistributedPrimitiveOptions<O>
Builder forTopic
instances.
-
-
Field Summary
Fields Modifier and Type Field Description protected BiFunction<T,Version,T>
compatibilityFunction
-
Constructor Summary
Constructors Constructor Description TopicOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
withCompatibilityFunction(BiFunction<T,Version,T> compatibilityFunction)
Sets a compatibility function on the map.-
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
-
-
-
-
Field Detail
-
compatibilityFunction
protected BiFunction<T,Version,T> compatibilityFunction
-
-
Method Detail
-
withCompatibilityFunction
public O withCompatibilityFunction(BiFunction<T,Version,T> compatibilityFunction)
Sets a compatibility function on the map.- Parameters:
compatibilityFunction
- the compatibility function- Returns:
- the consistent map builder
-
-