|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a Server which accepts incoming client connections in the form of TransportChannels which is used inside the JMS Broker
Method Summary | |
java.net.InetSocketAddress |
getSocketAddress()
An optional method to return the socket address if there is one on which this channel is listening. |
java.lang.String |
getUrl()
Returns the URL to connect to this connector |
void |
setTransportChannelListener(TransportChannelListener listener)
Registers the listener to be used when new clients connect or disconnect |
void |
start()
start listeneing for events |
void |
stop()
close the ServerChannel |
Method Detail |
public void stop() throws javax.jms.JMSException
stop
in interface Service
javax.jms.JMSException
public void start() throws javax.jms.JMSException
start
in interface Service
javax.jms.JMSException
- if an error occurspublic void setTransportChannelListener(TransportChannelListener listener)
listener
- the listener to be invoked when a client connects
or disconnectspublic java.lang.String getUrl()
public java.net.InetSocketAddress getSocketAddress()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |