public class PingRequest extends UpstreamMessage
Streamable.Closure| Modifier and Type | Field and Description |
|---|---|
static long |
PING_INTERVAL
The number of milliseconds of idle upstream that are allowed to elapse before the client
sends a ping message to the server to let it know that we're still alive.
|
messageId| Constructor and Description |
|---|
PingRequest()
Zero argument constructor used when unserializing an instance.
|
PingRequest(Transport transport)
Creates a new ping request using the specified transport.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPackStamp()
Returns a timestamp that was obtained when this packet was encoded by the low-level
networking code.
|
Transport |
getTransport()
Returns the message transport parameters.
|
long |
getUnpackStamp()
Returns a timestamp that was obtained when this packet was decoded by the low-level
networking code.
|
void |
readObject(ObjectInputStream in)
Reads our custom streamable fields.
|
void |
setTransport(Transport transport)
Sets the message transport parameters.
|
String |
toString() |
void |
writeObject(ObjectOutputStream out)
Writes our custom streamable fields.
|
noteActualTransportpublic static final long PING_INTERVAL
public PingRequest()
public PingRequest(Transport transport)
public long getPackStamp()
public long getUnpackStamp()
public void writeObject(ObjectOutputStream out) throws IOException
IOExceptionpublic void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void setTransport(Transport transport)
MessagesetTransport in class Messagepublic Transport getTransport()
MessagegetTransport in class Messagepublic String toString()
toString in class UpstreamMessageCopyright © 2015. All rights reserved.