JMXConnectionNotification (Java SE 15 & JDK 15) (original) (raw)

All Implemented Interfaces:

[Serializable](../../../../java.base/java/io/Serializable.html "interface in java.io")


public class JMXConnectionNotification extends Notification

Notification emitted when a client connection is opened or closed or when notifications are lost. These notifications are sent by connector servers (instances of JMXConnectorServer) and by connector clients (instances of JMXConnector). For certain connectors, a session can consist of a sequence of connections. Connection-opened and connection-closed notifications will be sent for each one.

The notification type is one of the following:

JMXConnectionNotification Types

Type Meaning
jmx.remote.connection.opened A new client connection has been opened.
jmx.remote.connection.closed A client connection has been closed.
jmx.remote.connection.failed A client connection has failed unexpectedly.
jmx.remote.connection.notifs.lost A client connection has potentially lost notifications. This notification only appears on the client side.

The timeStamp of the notification is a time value (consistent with System.currentTimeMillis()) indicating when the notification was constructed.

Since:

1.5

See Also:

Serialized Form

Fields

Modifier and Type Field Description
static String CLOSED Notification type string for a connection-closed notification.
static String FAILED Notification type string for a connection-failed notification.
static String NOTIFS_LOST Notification type string for a connection that has possibly lost notifications.
static String OPENED Notification type string for a connection-opened notification.

Constructors

Constructor Description
JMXConnectionNotification​(String type,Object source,String connectionId, long sequenceNumber,String message,Object userData) Constructs a new connection notification.
Modifier and Type Method Description
String getConnectionId() The connection ID to which this notification pertains.