|
||||||||||
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 | |
---|---|
Executor |
getBlockingExecutor()
|
String |
getBoundAddress()
|
DispatchQueue |
getDispatchQueue()
Returns the dispatch queue used by the transport |
SocketAddress |
getSocketAddress()
|
void |
resume()
resume accepting new transports |
void |
setBlockingExecutor(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(Runnable onComplete)
|
void |
start(Task onComplete)
Starts the service. |
void |
stop(Runnable onComplete)
|
void |
stop(Task onComplete)
Stops the service. |
void |
suspend()
suspend accepting new transports |
Method Detail |
---|
void start(Task onComplete) throws Exception
onComplete
- my be set to null if not interested in a callback.
Exception
void start(Runnable onComplete) throws Exception
Exception
void stop(Task onComplete) throws Exception
onComplete
- my be set to null if not interested in a callback.
Exception
void stop(Runnable onComplete) throws Exception
Exception
void setTransportServerListener(TransportServerListener acceptListener)
TransportAcceptListener
which is notified of accepted
channels.
acceptListener
- String getBoundAddress()
SocketAddress getSocketAddress()
DispatchQueue getDispatchQueue()
void setDispatchQueue(DispatchQueue queue)
queue
- void suspend()
void resume()
Executor getBlockingExecutor()
void setBlockingExecutor(Executor blockingExecutor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |