public class DefaultDcpEventBus extends Object implements EventBus
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.| Constructor and Description |
|---|
DefaultDcpEventBus(reactor.core.scheduler.Scheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<CouchbaseEvent> |
get()
Subscribe to the event bus to retrieve
CouchbaseEvents. |
void |
publish(CouchbaseEvent event)
Publish a
CouchbaseEvent into the bus. |
public DefaultDcpEventBus(reactor.core.scheduler.Scheduler scheduler)
public reactor.core.publisher.Flux<CouchbaseEvent> get()
EventBusCouchbaseEvents.public void publish(CouchbaseEvent event)
EventBusCouchbaseEvent into the bus.Copyright © 2021 Couchbase, Inc.. All rights reserved.