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
    Modifier and Type
    Field
    Description
    static final Tracer
    An instance that ignores all events.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    default void
     
    default void
    onControlEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel)
     
    default void
    onDataEvent(io.netty.buffer.ByteBuf buf, io.netty.channel.Channel channel)
     
    default void
    onStreamStart(HostAndPort address, int partition, long partitionUuid, long startSeqno, long endSeqno, long snapshotStartSeqno, long snapshotEndSeqno, Map<String,Object> value)
     
    default void
    onStreamStartFailed(HostAndPort address, int partition, String cause)
     
  • Field Details

    • NOOP

      static final Tracer NOOP
      An instance that ignores all events.
  • Method Details

    • onConnectionOpen

      default void onConnectionOpen(String channel)
    • onConnectionClose

      default void onConnectionClose(String channel)
    • onStreamStart

      default void onStreamStart(HostAndPort address, int partition, long partitionUuid, long startSeqno, long endSeqno, long snapshotStartSeqno, long snapshotEndSeqno, Map<String,Object> value)
    • onStreamStartFailed

      default void onStreamStartFailed(HostAndPort address, int partition, String cause)
    • 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)