Package com.couchbase.client.dcp.events
Class LoggingTracer
java.lang.Object
com.couchbase.client.dcp.events.LoggingTracer
- All Implemented Interfaces:
Tracer
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonConnectionClose(String channel) voidonConnectionOpen(String channel) voidonControlEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel) voidonDataEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel) voidonStreamStart(HostAndPort address, int partition, long partitionUuid, long startSeqno, long endSeqno, long snapshotStartSeqno, long snapshotEndSeqno, Map<String, Object> value) voidonStreamStartFailed(HostAndPort address, int partition, String cause)
-
Constructor Details
-
LoggingTracer
- Parameters:
level- level at which to log the trace messagesdocumentIdIsInteresting- (nullable) tests a document ID and returns true if events related to this document ID should be logged. Null means log all documents.
-
-
Method Details
-
onConnectionOpen
- Specified by:
onConnectionOpenin interfaceTracer
-
onConnectionClose
- Specified by:
onConnectionClosein interfaceTracer
-
onStreamStart
public void onStreamStart(HostAndPort address, int partition, long partitionUuid, long startSeqno, long endSeqno, long snapshotStartSeqno, long snapshotEndSeqno, Map<String, Object> value) - Specified by:
onStreamStartin interfaceTracer
-
onStreamStartFailed
- Specified by:
onStreamStartFailedin interfaceTracer
-
onDataEvent
public void onDataEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel) - Specified by:
onDataEventin interfaceTracer
-
onControlEvent
public void onControlEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel) - Specified by:
onControlEventin interfaceTracer
-