public interface TransportServer
Transport objects and then
delivers those objects to a TransportAcceptListener.| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Executor |
getBlockingExecutor() |
java.lang.String |
getBoundAddress() |
DispatchQueue |
getDispatchQueue()
Returns the dispatch queue used by the transport
|
java.net.SocketAddress |
getSocketAddress() |
void |
resume()
resume accepting new transports
|
void |
setBlockingExecutor(java.util.concurrent.Executor blockingExecutor) |
void |
setDispatchQueue(DispatchQueue queue)
Sets the dispatch queue used by the transport
|
void |
setTransportServerListener(TransportServerListener acceptListener)
Registers an
TransportAcceptListener which is notified of accepted
channels. |
void |
start(java.lang.Runnable onComplete) |
void |
start(Task onComplete)
Starts the service.
|
void |
stop(java.lang.Runnable onComplete) |
void |
stop(Task onComplete)
Stops the service.
|
void |
suspend()
suspend accepting new transports
|
void start(Task onComplete) throws java.lang.Exception
onComplete - my be set to null if not interested in a callback.java.lang.Exceptionvoid start(java.lang.Runnable onComplete)
throws java.lang.Exception
java.lang.Exceptionvoid stop(Task onComplete) throws java.lang.Exception
onComplete - my be set to null if not interested in a callback.java.lang.Exceptionvoid stop(java.lang.Runnable onComplete) throws java.lang.Exception
java.lang.Exceptionvoid setTransportServerListener(TransportServerListener acceptListener)
TransportAcceptListener which is notified of accepted
channels.acceptListener - java.lang.String getBoundAddress()
java.net.SocketAddress getSocketAddress()
DispatchQueue getDispatchQueue()
void setDispatchQueue(DispatchQueue queue)
queue - void suspend()
void resume()
java.util.concurrent.Executor getBlockingExecutor()
void setBlockingExecutor(java.util.concurrent.Executor blockingExecutor)