|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnectionContext
This interface provides information about an incoming connection
to an ILoadBalancer
to assist it in making load balancing
decisions.
An ILoadBalancer
implementation uses the information provided
by this interface, and call setNewBrokerURL(String)
to set an
url for the connection to use.
Method Summary | |
---|---|
java.lang.String |
getAcceptorName()
Get's the name of the acceptor to which the client connected at the broker. |
java.lang.String |
getClientData()
Gets the optional 'hint' data supplied by the client application to assist the load balancer. |
java.lang.String |
getClientHost()
Returns the host of the incoming client as resolved by the broker. |
int |
getClientPort()
Gets the port to which the incoming client has connected. |
java.lang.String |
getJMSClientID()
Gets the JMS ClientId for the incoming connection, if it is available. |
void |
setNewBrokerURL(java.lang.String brokerURL)
This should be set by an ILoadBalancer implementation to the
the new to which to redirect a client connection. |
Method Detail |
---|
java.lang.String getClientData()
java.lang.String getJMSClientID()
java.lang.String getClientHost()
int getClientPort()
java.lang.String getAcceptorName()
void setNewBrokerURL(java.lang.String brokerURL)
ILoadBalancer
implementation to the
the new to which to redirect a client connection.
brokerURL
- The new broker url.
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |