|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activemq.transport.TransportServerChannelSupport
An abstract base class useful for implementation inheritence
Constructor Summary | |
TransportServerChannelSupport(String url)
|
|
TransportServerChannelSupport(URI url)
|
Method Summary | |
protected void |
addClient(TransportChannel channel)
|
TransportChannelListener |
getTransportChannelListener()
|
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 |
setUrl(String url)
|
void |
start()
start listeneing for events |
void |
stop()
close the ServerChannel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransportServerChannelSupport(URI url)
public TransportServerChannelSupport(String url)
Method Detail |
public void start() throws JMSException
TransportServerChannel
start
in interface TransportServerChannel
JMSException
- if an error occurspublic void stop() throws JMSException
TransportServerChannel
stop
in interface TransportServerChannel
JMSException
public TransportChannelListener getTransportChannelListener()
public void setTransportChannelListener(TransportChannelListener listener)
TransportServerChannel
setTransportChannelListener
in interface TransportServerChannel
listener
- the listener to be invoked when a client connects
or disconnectspublic String getUrl()
TransportServerChannel
getUrl
in interface TransportServerChannel
public void setUrl(String url)
protected void addClient(TransportChannel channel)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |