Class AtomixDistributedTopic<T>
- java.lang.Object
-
- org.onosproject.store.atomix.primitives.impl.AtomixDistributedTopic<T>
-
- Type Parameters:
T- topic message type.
- All Implemented Interfaces:
org.onosproject.store.service.DistributedPrimitive,org.onosproject.store.service.Topic<T>
public class AtomixDistributedTopic<T> extends Object implements org.onosproject.store.service.Topic<T>
Default implementation ofTopic.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>destroy()Stringname()org.onosproject.store.service.DistributedPrimitive.TypeprimitiveType()CompletableFuture<Void>publish(T message)CompletableFuture<Void>subscribe(Consumer<T> callback, Executor executor)CompletableFuture<Void>unsubscribe(Consumer<T> callback)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceorg.onosproject.store.service.DistributedPrimitive
-
primitiveType
public org.onosproject.store.service.DistributedPrimitive.Type primitiveType()
- Specified by:
primitiveTypein interfaceorg.onosproject.store.service.DistributedPrimitive
-
publish
public CompletableFuture<Void> publish(T message)
- Specified by:
publishin interfaceorg.onosproject.store.service.Topic<T>
-
subscribe
public CompletableFuture<Void> subscribe(Consumer<T> callback, Executor executor)
- Specified by:
subscribein interfaceorg.onosproject.store.service.Topic<T>
-
unsubscribe
public CompletableFuture<Void> unsubscribe(Consumer<T> callback)
- Specified by:
unsubscribein interfaceorg.onosproject.store.service.Topic<T>
-
destroy
public CompletableFuture<Void> destroy()
- Specified by:
destroyin interfaceorg.onosproject.store.service.DistributedPrimitive
-
-