public class UdpTransportServer extends ServiceBase implements TransportServer
ServiceBase.STARTING, ServiceBase.State, ServiceBase.STOPPING_serviceState, CREATED, STARTED, STOPPED| Constructor and Description |
|---|
UdpTransportServer(URI location) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_start(Task onCompleted) |
protected void |
_stop(Task onCompleted) |
protected UdpTransport |
createTransport() |
Executor |
getBlockingExecutor() |
String |
getBoundAddress() |
DispatchQueue |
getDispatchQueue()
Returns the dispatch queue used by the transport
|
InetSocketAddress |
getSocketAddress() |
void |
resume()
resume accepting new transports
|
void |
setBlockingExecutor(Executor blockingExecutor) |
void |
setDispatchQueue(DispatchQueue dispatchQueue)
Sets the dispatch queue used by the transport
|
void |
setTransportServerListener(TransportServerListener listener)
Registers an
TransportAcceptListener which is notified of accepted
channels. |
void |
suspend()
suspend accepting new transports
|
String |
toString() |
getServiceState, start, start, stop, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitstart, start, stop, stoppublic UdpTransportServer(URI location) throws UnknownHostException
UnknownHostExceptionpublic void setTransportServerListener(TransportServerListener listener)
TransportServerTransportAcceptListener which is notified of accepted
channels.setTransportServerListener in interface TransportServerpublic InetSocketAddress getSocketAddress()
getSocketAddress in interface TransportServerpublic DispatchQueue getDispatchQueue()
TransportServergetDispatchQueue in interface TransportServergetDispatchQueue in class ServiceBasepublic void setDispatchQueue(DispatchQueue dispatchQueue)
TransportServersetDispatchQueue in interface TransportServerprotected void _start(Task onCompleted)
_start in class ServiceBaseprotected UdpTransport createTransport()
protected void _stop(Task onCompleted)
_stop in class ServiceBasepublic void suspend()
TransportServersuspend in interface TransportServerpublic void resume()
TransportServerresume in interface TransportServerpublic String getBoundAddress()
getBoundAddress in interface TransportServerpublic Executor getBlockingExecutor()
getBlockingExecutor in interface TransportServerpublic void setBlockingExecutor(Executor blockingExecutor)
setBlockingExecutor in interface TransportServerCopyright © 2010-2013 FuseSource, Corp.. All Rights Reserved.