net.i2p.client
class MessageState extends Object
Constructor and Description |
---|
MessageState(I2PAppContext ctx,
long nonce,
String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
long |
getElapsed() |
SessionKey |
getKey() |
MessageId |
getMessageId() |
SessionKey |
getNewKey() |
long |
getNonce() |
Set |
getTags() |
Destination |
getTo() |
void |
receive(int status) |
boolean |
received(int status)
true if the given status (or an equivilant) was received
|
void |
setKey(SessionKey key) |
void |
setMessageId(MessageId id) |
void |
setNewKey(SessionKey key) |
void |
setTags(Set tags) |
void |
setTo(Destination dest) |
void |
waitFor(int status,
long expiration) |
public MessageState(I2PAppContext ctx, long nonce, String prefix)
public void receive(int status)
public void setMessageId(MessageId id)
public MessageId getMessageId()
public long getNonce()
public void setKey(SessionKey key)
public SessionKey getKey()
public void setNewKey(SessionKey key)
public SessionKey getNewKey()
public void setTags(Set tags)
public Set getTags()
public void setTo(Destination dest)
public Destination getTo()
public long getElapsed()
public void waitFor(int status, long expiration)
public boolean received(int status)
public void cancel()