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 java.lang.Object implements org.onosproject.store.service.Topic<T>Default implementation ofTopic.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Void>destroy()java.lang.Stringname()org.onosproject.store.service.DistributedPrimitive.TypeprimitiveType()java.util.concurrent.CompletableFuture<java.lang.Void>publish(T message)java.util.concurrent.CompletableFuture<java.lang.Void>subscribe(java.util.function.Consumer<T> callback, java.util.concurrent.Executor executor)java.util.concurrent.CompletableFuture<java.lang.Void>unsubscribe(java.util.function.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 java.lang.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 java.util.concurrent.CompletableFuture<java.lang.Void> publish(T message)
- Specified by:
publishin interfaceorg.onosproject.store.service.Topic<T>
-
subscribe
public java.util.concurrent.CompletableFuture<java.lang.Void> subscribe(java.util.function.Consumer<T> callback, java.util.concurrent.Executor executor)
- Specified by:
subscribein interfaceorg.onosproject.store.service.Topic<T>
-
unsubscribe
public java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe(java.util.function.Consumer<T> callback)
- Specified by:
unsubscribein interfaceorg.onosproject.store.service.Topic<T>
-
destroy
public java.util.concurrent.CompletableFuture<java.lang.Void> destroy()
- Specified by:
destroyin interfaceorg.onosproject.store.service.DistributedPrimitive
-
-