public class PongResponse extends DownstreamMessage
Streamable.ClosuremessageId| Constructor and Description |
|---|
PongResponse()
Zero argument constructor used when unserializing an instance.
|
PongResponse(long pingStamp,
Transport transport)
Constructs a pong response which will use the supplied ping time to establish the end-to-end
processing delay introduced by the server.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPackStamp()
Returns the time at which this packet was packed for delivery in the time frame of the
server that sent the packet.
|
int |
getProcessDelay()
Returns the number of milliseconds that elapsed between the time that the ping which
instigated this pong was read from the network and the time that this pong was written to
the network.
|
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 PongResponse()
public PongResponse(long pingStamp,
Transport transport)
public long getPackStamp()
public int getProcessDelay()
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 DownstreamMessageCopyright © 2015. All rights reserved.