public class EventHandlerAdapter extends Object implements ControlEventHandler, SystemEventHandler
DatabaseChangeListener.| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(ChannelFlowController flowController,
io.netty.buffer.ByteBuf event)
Called every time when a control event happens that should be handled by
consumers of the
Client. |
void |
onEvent(CouchbaseEvent event)
Called every time when a system event happens that should be handled by
consumers of the
Client. |
static EventHandlerAdapter |
register(Client dcpClient,
EventDispatcher dispatcher) |
public static EventHandlerAdapter register(Client dcpClient, EventDispatcher dispatcher)
public void onEvent(CouchbaseEvent event)
SystemEventHandlerClient.onEvent in interface SystemEventHandlerevent - the system event happening.public void onEvent(ChannelFlowController flowController, io.netty.buffer.ByteBuf event)
ControlEventHandlerClient.
Even if you are not doing anything with the events, make sure to release the buffer!!
onEvent in interface ControlEventHandlerflowController - the flow controller for the passed event.event - the control event happening.Copyright © 2021 Couchbase, Inc.. All rights reserved.