T - topic message type.public class DefaultDistributedTopic<T> extends Object implements org.onosproject.store.service.Topic<T>
Topic.| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
destroy() |
String |
name() |
org.onosproject.store.service.DistributedPrimitive.Type |
primitiveType() |
CompletableFuture<Void> |
publish(T message) |
CompletableFuture<Void> |
subscribe(Consumer<T> callback,
Executor executor) |
CompletableFuture<Void> |
unsubscribe(Consumer<T> callback) |
public String name()
name in interface org.onosproject.store.service.DistributedPrimitivepublic org.onosproject.store.service.DistributedPrimitive.Type primitiveType()
primitiveType in interface org.onosproject.store.service.DistributedPrimitivepublic CompletableFuture<Void> destroy()
destroy in interface org.onosproject.store.service.DistributedPrimitivepublic CompletableFuture<Void> publish(T message)
publish in interface org.onosproject.store.service.Topic<T>public CompletableFuture<Void> subscribe(Consumer<T> callback, Executor executor)
subscribe in interface org.onosproject.store.service.Topic<T>public CompletableFuture<Void> unsubscribe(Consumer<T> callback)
unsubscribe in interface org.onosproject.store.service.Topic<T>