Class MinimalEventBus

java.lang.Object
com.couchbase.client.dcp.core.utils.MinimalEventBus
All Implemented Interfaces:
com.couchbase.client.core.cnc.EventBus

@Internal public class MinimalEventBus extends Object implements com.couchbase.client.core.cnc.EventBus
Simple implementation that synchronously logs events.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.EventBus

    com.couchbase.client.core.cnc.EventBus.PublishResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.couchbase.client.core.cnc.EventBus
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.couchbase.client.core.cnc.EventBus.PublishResult
    publish(com.couchbase.client.core.cnc.Event event)
     
    reactor.core.publisher.Mono<Void>
     
    reactor.core.publisher.Mono<Void>
    stop(Duration timeout)
     
    com.couchbase.client.core.cnc.EventSubscription
    subscribe(Consumer<com.couchbase.client.core.cnc.Event> consumer)
     
    void
    unsubscribe(com.couchbase.client.core.cnc.EventSubscription subscription)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final com.couchbase.client.core.cnc.EventBus INSTANCE
  • Constructor Details

    • MinimalEventBus

      public MinimalEventBus()
  • Method Details

    • publish

      public com.couchbase.client.core.cnc.EventBus.PublishResult publish(com.couchbase.client.core.cnc.Event event)
      Specified by:
      publish in interface com.couchbase.client.core.cnc.EventBus
    • subscribe

      public com.couchbase.client.core.cnc.EventSubscription subscribe(Consumer<com.couchbase.client.core.cnc.Event> consumer)
      Specified by:
      subscribe in interface com.couchbase.client.core.cnc.EventBus
    • unsubscribe

      public void unsubscribe(com.couchbase.client.core.cnc.EventSubscription subscription)
      Specified by:
      unsubscribe in interface com.couchbase.client.core.cnc.EventBus
    • start

      public reactor.core.publisher.Mono<Void> start()
      Specified by:
      start in interface com.couchbase.client.core.cnc.EventBus
    • stop

      public reactor.core.publisher.Mono<Void> stop(Duration timeout)
      Specified by:
      stop in interface com.couchbase.client.core.cnc.EventBus