public abstract class Communicator extends Object
| Constructor and Description |
|---|
Communicator(Client client)
Creates a new communicator instance which is associated with the supplied client.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLastWrite()
Returns the time at which we last sent a packet to the server.
|
boolean |
getTransmitDatagrams()
Checks whether we should transmit datagrams.
|
abstract void |
gotBootstrap()
Notifies the communicator that the client has received its bootstrap data.
|
abstract void |
logoff()
Delivers a logoff notification to the server and shuts down the network connection.
|
abstract void |
logon()
Logs on to the server and initiates our full-duplex message exchange.
|
abstract void |
postMessage(UpstreamMessage msg)
Queues up the specified message for delivery upstream.
|
abstract void |
setClassLoader(ClassLoader loader)
Configures this communicator with a custom class loader to be used when reading and writing
objects over the network.
|
public Communicator(Client client)
public abstract void logon()
public abstract void logoff()
public abstract void gotBootstrap()
public abstract void postMessage(UpstreamMessage msg)
public abstract void setClassLoader(ClassLoader loader)
public long getLastWrite()
public boolean getTransmitDatagrams()
Copyright © 2015. All rights reserved.