public class ClientMessage extends Object
| Constructor and Description |
|---|
ClientMessage(Destination toDest,
Payload payload,
SessionConfig config,
Destination fromDest,
MessageId msgID,
long messageNonce,
long expiration,
int flags)For outbound (locally originated) |
ClientMessage(Hash toDestHash,
Payload payload)For inbound (from remote dest) |
| Modifier and Type | Method and Description |
|---|---|
Destination | getDestination()Retrieve the destination to which this message is directed. |
Hash | getDestinationHash()Retrieve the destination to which this message is directed. |
long | getExpiration()Expiration requested by the client that sent the message. |
int | getFlags()Flags requested by the client that sent the message. |
Destination | getFromDestination()Valid for outbound; null for inbound. |
MessageId | getMessageId()Valid for outbound; null for inbound. |
long | getMessageNonce()Valid for outbound; 0 for inbound. |
Payload | getPayload()Retrieve the payload of the message. |
SessionConfig | getSenderConfig()Retrieve the session config of the client that sent the message. |
public ClientMessage(Destination toDest, Payload payload, SessionConfig config, Destination fromDest, MessageId msgID, long messageNonce, long expiration, int flags)
toDest - the destination to send topayload - the message payloadconfig - the session config of the sending clientfromDest - the source destinationmsgID - the router's ID for this messagemessageNonce - the client's ID for this messageexpiration - the expiration timeflags - the message flagspublic Destination getDestination()
public Hash getDestinationHash()
public long getExpiration()
public int getFlags()
public Destination getFromDestination()
public MessageId getMessageId()
public long getMessageNonce()
public Payload getPayload()
public SessionConfig getSenderConfig()