|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransportServer
A TransportServer asynchronously accepts Transport objects and then
delivers those objects to a TransportAcceptListener.
| Method Summary | |
|---|---|
java.lang.String |
getBoundAddress()
|
java.lang.String |
getConnectAddress()
|
org.fusesource.hawtdispatch.DispatchQueue |
getDispatchQueue()
Returns the dispatch queue used by the transport |
java.net.SocketAddress |
getSocketAddress()
|
void |
resume()
resume accepting new transports |
void |
setAcceptListener(TransportServerListener acceptListener)
Registers an TransportAcceptListener which is notified of accepted
channels. |
void |
setDispatchQueue(org.fusesource.hawtdispatch.DispatchQueue queue)
Sets the dispatch queue used by the transport |
void |
start(java.lang.Runnable onComplete)
Starts the service. |
void |
stop(java.lang.Runnable onComplete)
Stops the service. |
void |
suspend()
suspend accepting new transports |
| Method Detail |
|---|
void start(java.lang.Runnable onComplete)
throws java.lang.Exception
onComplete - my be set to null if not interested in a callback.
java.lang.Exception
void stop(java.lang.Runnable onComplete)
throws java.lang.Exception
onComplete - my be set to null if not interested in a callback.
java.lang.Exceptionvoid setAcceptListener(TransportServerListener acceptListener)
TransportAcceptListener which is notified of accepted
channels.
acceptListener - java.lang.String getBoundAddress()
java.lang.String getConnectAddress()
java.net.SocketAddress getSocketAddress()
org.fusesource.hawtdispatch.DispatchQueue getDispatchQueue()
void setDispatchQueue(org.fusesource.hawtdispatch.DispatchQueue queue)
queue - void suspend()
void resume()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||