Interface RemoteBrokerConnection
public interface RemoteBrokerConnection
A remote broker connection defines a view of the remote end of an active
BrokerConnection.-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the broker connection as defined on the remote server; this value is unique on the remote server but is only unique on the local end when combined with the unique node Id from which the broker connection was initiated.Returns the node Id of the remote broker that created the incoming connection.Returns the protocol that underlies the broker connection implementation.voidHandles initialization when the remote connection is setup.voidshutdown()Handles cleanup when the remote connection is closed or becomes disconnect.
-
Method Details
-
initialize
Handles initialization when the remote connection is setup.- Throws:
Exception- if an error occurs during initialization.
-
shutdown
Handles cleanup when the remote connection is closed or becomes disconnect.- Throws:
Exception- if an error occurs during shutdown.
-
getName
String getName()Returns the name of the broker connection as defined on the remote server; this value is unique on the remote server but is only unique on the local end when combined with the unique node Id from which the broker connection was initiated.- Returns:
- the name of the broker connection as defined on the remote server; this value is unique on the remote server but is only unique on the local end when combined with the unique node Id from which the broker connection was initiated
-
getNodeId
String getNodeId()Returns the node Id of the remote broker that created the incoming connection.- Returns:
- the node Id of the remote broker that created the incoming connection
-
getProtocol
String getProtocol()Returns the protocol that underlies the broker connection implementation.- Returns:
- the protocol that underlies the broker connection implementation
-