|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fusesource.hawtdispatch.transport.TransportFilter
public class TransportFilter
| Constructor Summary | |
|---|---|
TransportFilter(Transport next)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransportFilter(Transport next)
| Method Detail |
|---|
public void flush()
Transport
flush in interface Transportpublic boolean full()
full in interface Transportpublic Executor getBlockingExecutor()
getBlockingExecutor in interface Transportpublic DispatchQueue getDispatchQueue()
Transport
getDispatchQueue 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()
Transport
getTransportListener in interface Transportpublic WritableByteChannel getWriteChannel()
getWriteChannel in interface Transportpublic boolean isClosed()
isClosed in interface Transportpublic boolean isConnected()
isConnected in interface Transportpublic boolean offer(Object command)
Transport
offer in interface Transportpublic void resumeRead()
Transport
resumeRead in interface Transportpublic void setBlockingExecutor(Executor blockingExecutor)
setBlockingExecutor in interface Transportpublic void setDispatchQueue(DispatchQueue queue)
Transport
setDispatchQueue in interface Transport
public void setProtocolCodec(ProtocolCodec protocolCodec)
throws Exception
Transport
setProtocolCodec in interface TransportExceptionpublic void setTransportListener(TransportListener transportListener)
Transport
setTransportListener in interface Transportpublic void start(Runnable onComplete)
Transport
start in interface TransportonComplete - my be set to null if not interested in a callback.public void start(Task onComplete)
Transport
start in interface TransportonComplete - my be set to null if not interested in a callback.public void stop(Runnable onComplete)
Transport
stop in interface TransportonComplete - my be set to null if not interested in a callback.public void stop(Task onComplete)
Transport
stop in interface TransportonComplete - my be set to null if not interested in a callback.public void suspendRead()
Transport
suspendRead in interface Transportpublic void drainInbound()
drainInbound in interface Transport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||