Package com.couchbase.client.dcp.events
Class DefaultDcpEventBus
java.lang.Object
com.couchbase.client.dcp.events.DefaultDcpEventBus
- All Implemented Interfaces:
EventBus
Like
com.couchbase.client.dcp.core.event.DefaultEventBus but buffers on backpressure instead of dropping.
This is important in order not to drop critical events like StreamEndEvents that only get sent once.- Since:
- 0.13.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<CouchbaseEvent>get()Subscribe to the event bus to retrieveCouchbaseEvents.voidpublish(CouchbaseEvent event) Publish aCouchbaseEventinto the bus.
-
Constructor Details
-
DefaultDcpEventBus
public DefaultDcpEventBus(reactor.core.scheduler.Scheduler scheduler)
-
-
Method Details
-
get
Description copied from interface:EventBusSubscribe to the event bus to retrieveCouchbaseEvents. -
publish
Description copied from interface:EventBusPublish aCouchbaseEventinto the bus.
-