public class PipeTransport extends Object implements Transport
| Constructor and Description |
|---|
PipeTransport(PipeTransportServer server) |
| 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() |
long |
getReadCounter() |
SocketAddress |
getRemoteAddress() |
TransportListener |
getTransportListener()
Returns the current transport listener
|
WritableByteChannel |
getWriteChannel() |
long |
getWriteCounter() |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isMarshal() |
boolean |
isTrace() |
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 |
setMarshal(boolean marshall) |
void |
setName(String name) |
void |
setProtocolCodec(ProtocolCodec protocolCodec)
Sets the protocol codec for the transport
|
void |
setRemoteAddress(String remoteAddress) |
void |
setTrace(boolean trace) |
void |
setTransportListener(TransportListener transportListener)
Registers an inbound command listener
|
void |
start(Runnable onCompleted)
Deprecated.
|
void |
start(Task onCompleted)
Starts the service.
|
void |
stop(Runnable onCompleted)
Deprecated.
|
void |
stop(Task onCompleted)
Stops the service.
|
void |
suspendRead()
suspend delivery of commands.
|
public PipeTransport(PipeTransportServer server)
public DispatchQueue getDispatchQueue()
TransportgetDispatchQueue in interface Transportpublic void setDispatchQueue(DispatchQueue queue)
TransportsetDispatchQueue in interface Transport@Deprecated public void start(Runnable onCompleted)
Transportpublic void start(Task onCompleted)
Transportpublic void flush()
Transport@Deprecated public void stop(Runnable onCompleted)
Transportpublic void stop(Task onCompleted)
Transportpublic boolean offer(Object command)
Transportpublic void drainInbound()
drainInbound in interface Transportpublic long getWriteCounter()
public long getReadCounter()
public SocketAddress getLocalAddress()
getLocalAddress in interface Transportpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface Transportpublic void suspendRead()
TransportsuspendRead in interface Transportpublic void resumeRead()
TransportresumeRead in interface Transportpublic void setRemoteAddress(String remoteAddress)
public TransportListener getTransportListener()
TransportgetTransportListener in interface Transportpublic void setTransportListener(TransportListener transportListener)
TransportsetTransportListener in interface Transportpublic ProtocolCodec getProtocolCodec()
getProtocolCodec in interface Transportpublic void setProtocolCodec(ProtocolCodec protocolCodec)
TransportsetProtocolCodec in interface Transportpublic boolean isTrace()
public void setTrace(boolean trace)
public boolean isMarshal()
public void setMarshal(boolean marshall)
public boolean isConnected()
isConnected in interface Transportpublic boolean isClosed()
public Executor getBlockingExecutor()
getBlockingExecutor in interface Transportpublic void setBlockingExecutor(Executor blockingExecutor)
setBlockingExecutor in interface Transportpublic ReadableByteChannel getReadChannel()
getReadChannel in interface Transportpublic WritableByteChannel getWriteChannel()
getWriteChannel in interface TransportCopyright © 2010-2013 FuseSource, Corp.. All Rights Reserved.