Class 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 of Topic.
    • Method Detail

      • name

        public String name()
        Specified by:
        name in interface org.onosproject.store.service.DistributedPrimitive
      • primitiveType

        public org.onosproject.store.service.DistributedPrimitive.Type primitiveType()
        Specified by:
        primitiveType in interface org.onosproject.store.service.DistributedPrimitive
      • publish

        public CompletableFuture<Void> publish​(T message)
        Specified by:
        publish in interface org.onosproject.store.service.Topic<T>
      • unsubscribe

        public CompletableFuture<Void> unsubscribe​(Consumer<T> callback)
        Specified by:
        unsubscribe in interface org.onosproject.store.service.Topic<T>
      • destroy

        public CompletableFuture<Void> destroy()
        Specified by:
        destroy in interface org.onosproject.store.service.DistributedPrimitive