Package com.couchbase.client.dcp.events
Interface Tracer
- All Known Implementing Classes:
LoggingTracer
public interface Tracer
Callback handler for various events that might occur while the DCP client
is running. Methods might be called from non-blocking IO threads,
and must return quickly without making blocking calls.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidonConnectionClose(String channel) default voidonConnectionOpen(String channel) default voidonControlEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel) default voidonDataEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel) default voidonStreamStart(HostAndPort address, int partition, long partitionUuid, long startSeqno, long endSeqno, long snapshotStartSeqno, long snapshotEndSeqno, Map<String, Object> value) default voidonStreamStartFailed(HostAndPort address, int partition, String cause)
-
Field Details
-
NOOP
An instance that ignores all events.
-
-
Method Details
-
onConnectionOpen
-
onConnectionClose
-
onStreamStart
default void onStreamStart(HostAndPort address, int partition, long partitionUuid, long startSeqno, long endSeqno, long snapshotStartSeqno, long snapshotEndSeqno, Map<String, Object> value) -
onStreamStartFailed
-
onDataEvent
default void onDataEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel) -
onControlEvent
default void onControlEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel)
-