public class AsynchronizeTransport extends Object implements AsynchronousTransport
| Modifier and Type | Field and Description |
|---|---|
SynchronousTransport |
transport |
| Constructor and Description |
|---|
AsynchronizeTransport(SynchronousTransport transport) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect() |
void |
flush() |
boolean |
isConnected() |
void |
reconnect() |
Promise<Proto.Msg> |
sendMessage(Proto.Msg msg) |
SynchronousTransport |
transport() |
public final SynchronousTransport transport
public AsynchronizeTransport(SynchronousTransport transport)
public Promise<Proto.Msg> sendMessage(Proto.Msg msg)
sendMessage in interface AsynchronousTransportpublic SynchronousTransport transport()
public boolean isConnected()
isConnected in interface Transportpublic void connect()
throws IOException
connect in interface TransportIOExceptionpublic void close()
close in interface Transportclose in interface AutoCloseablepublic void reconnect()
throws IOException
reconnect in interface TransportIOExceptionpublic void flush()
throws IOException
flush in interface TransportIOExceptionCopyright © 2015. All rights reserved.