public interface JMSConnection
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection.
|
void |
connect(boolean retry)
Estabilish a connection to a JMS broker.
|
void |
disconnect()
Disconnect from the JMS broker.
|
java.lang.String |
getConnectId()
Get the unique connection identifier associated with the connection.
|
java.lang.String |
getUsername()
Get the username, if any, associated with the connection.
|
boolean |
isConnected()
Check if the connection is estabilished.
|
void |
setExceptionListener(ExceptionListener listener)
Set the listener for JMSException.
|
void |
start()
Start the connection.
|
void |
stop()
Stop the connection.
|
java.lang.String getConnectId()
boolean isConnected()
void setExceptionListener(ExceptionListener listener)
throws ConnectionException
listener - the ExceptionListener instance implementing the onException() methodConnectionException - JMS was unable to set the ExceptionListener for the connection.java.lang.String getUsername()
void close()
void connect(boolean retry)
throws ConnectionException
retry - true if connection retry mechanism is requested.ConnectionExceptionvoid disconnect()
void start()
throws ConnectionException
ConnectionExceptionvoid stop() throws ConnectionException
ConnectionException