Class NotificationService<P extends Partition,O extends OffsetContext>

java.lang.Object
io.debezium.pipeline.notification.NotificationService<P,O>

public class NotificationService<P extends Partition,O extends OffsetContext> extends Object
This service can be used to send notification to available and enabled channels
  • Field Details

  • Constructor Details

  • Method Details

    • notify

      public void notify(Notification notification)
      This method permits to just send a notification. For the channels that implements For ConnectChannel an empty Partition and Offset will be sent with the SourceRecord
      Parameters:
      notification - the notification to send
    • notify

      public void notify(Notification notification, Offsets<P,? extends OffsetContext> offsets)
      This method permits to send a notification together with offsets. This make sense only for channels that implements For ConnectChannel
      Parameters:
      notification - the notification to send
      offsets - the offset to send together with Kafka SourceRecord
    • isEnabled

      private Predicate<? super NotificationChannel> isEnabled()
    • isConnectChannel

      private Predicate<? super NotificationChannel> isConnectChannel()