Class JmxNotificationChannel
java.lang.Object
javax.management.NotificationBroadcasterSupport
io.debezium.pipeline.notification.channels.jmx.JmxNotificationChannel
- All Implemented Interfaces:
JmxNotificationChannelMXBean
,NotificationChannel
,NotificationBroadcaster
,NotificationEmitter
public class JmxNotificationChannel
extends NotificationBroadcasterSupport
implements NotificationChannel, JmxNotificationChannelMXBean
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private CommonConnectorConfig
private static final String
private static final org.slf4j.Logger
private final List<Notification>
private final AtomicLong
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Notification
buildJmxNotification
(Notification notification) void
close()
private String
composeMessage
(Notification notification) void
init
(CommonConnectorConfig connectorConfig) name()
void
reset()
void
send
(Notification notification) Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CHANNEL_NAME
- See Also:
-
DEBEZIUM_NOTIFICATION_TYPE
- See Also:
-
notifications
-
notificationSequence
-
connectorConfig
-
-
Constructor Details
-
JmxNotificationChannel
public JmxNotificationChannel()
-
-
Method Details
-
name
- Specified by:
name
in interfaceNotificationChannel
-
init
- Specified by:
init
in interfaceNotificationChannel
-
send
- Specified by:
send
in interfaceNotificationChannel
-
buildJmxNotification
-
composeMessage
-
close
public void close()- Specified by:
close
in interfaceNotificationChannel
-
getNotifications
- Specified by:
getNotifications
in interfaceJmxNotificationChannelMXBean
-
reset
public void reset()- Specified by:
reset
in interfaceJmxNotificationChannelMXBean
-
getNotificationInfo
- Specified by:
getNotificationInfo
in interfaceNotificationBroadcaster
- Overrides:
getNotificationInfo
in classNotificationBroadcasterSupport
-