public class TransportFilter extends Object implements Transport
| Constructor and Description |
|---|
TransportFilter(Transport next) |
| Modifier and Type | Method and Description |
|---|---|
void |
drainInbound() |
void |
flush()
Forces a flush of any output buffers.
|
boolean |
full() |
Executor |
getBlockingExecutor() |
DispatchQueue |
getDispatchQueue()
Returns the dispatch queue used by the transport
|
SocketAddress |
getLocalAddress() |
ProtocolCodec |
getProtocolCodec() |
ReadableByteChannel |
getReadChannel() |
SocketAddress |
getRemoteAddress() |
TransportListener |
getTransportListener()
Returns the current transport listener
|
WritableByteChannel |
getWriteChannel() |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
offer(Object command)
A one way asynchronous send of a command.
|
void |
resumeRead()
resume delivery of commands.
|
void |
setBlockingExecutor(Executor blockingExecutor) |
void |
setDispatchQueue(DispatchQueue queue)
Sets the dispatch queue used by the transport
|
void |
setProtocolCodec(ProtocolCodec protocolCodec)
Sets the protocol codec for the transport
|
void |
setTransportListener(TransportListener transportListener)
Registers an inbound command listener
|
void |
start(Runnable onComplete)
Starts the service.
|
void |
start(Task onComplete)
Starts the service.
|
void |
stop(Runnable onComplete)
Stops the service.
|
void |
stop(Task onComplete)
Stops the service.
|
void |
suspendRead()
suspend delivery of commands.
|
public TransportFilter(Transport next)
public void flush()
Transportpublic Executor getBlockingExecutor()
getBlockingExecutor in interface Transportpublic DispatchQueue getDispatchQueue()
TransportgetDispatchQueue in interface Transportpublic SocketAddress getLocalAddress()
getLocalAddress in interface Transportpublic ProtocolCodec getProtocolCodec()
getProtocolCodec in interface Transportpublic ReadableByteChannel getReadChannel()
getReadChannel in interface Transportpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface Transportpublic TransportListener getTransportListener()
TransportgetTransportListener in interface Transportpublic WritableByteChannel getWriteChannel()
getWriteChannel in interface Transportpublic boolean isClosed()
public boolean isConnected()
isConnected in interface Transportpublic boolean offer(Object command)
Transportpublic void resumeRead()
TransportresumeRead in interface Transportpublic void setBlockingExecutor(Executor blockingExecutor)
setBlockingExecutor in interface Transportpublic void setDispatchQueue(DispatchQueue queue)
TransportsetDispatchQueue in interface Transportpublic void setProtocolCodec(ProtocolCodec protocolCodec) throws Exception
TransportsetProtocolCodec in interface TransportExceptionpublic void setTransportListener(TransportListener transportListener)
TransportsetTransportListener in interface Transportpublic void start(Runnable onComplete)
Transportpublic void start(Task onComplete)
Transportpublic void stop(Runnable onComplete)
Transportpublic void stop(Task onComplete)
Transportpublic void suspendRead()
TransportsuspendRead in interface Transportpublic void drainInbound()
drainInbound in interface TransportCopyright © 2010-2013 FuseSource, Corp.. All Rights Reserved.