|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.tunnel.TunnelGateway.Pending
public static class TunnelGateway.Pending
Field Summary | |
---|---|
protected long |
_created
|
protected long |
_expiration
|
protected int |
_fragmentNumber
|
protected long |
_messageId
|
protected int |
_offset
|
protected byte[] |
_remaining
|
protected Hash |
_toRouter
|
protected TunnelId |
_toTunnel
|
Constructor Summary | |
---|---|
TunnelGateway.Pending(I2NPMessage message,
Hash toRouter,
TunnelId toTunnel)
|
|
TunnelGateway.Pending(I2NPMessage message,
Hash toRouter,
TunnelId toTunnel,
long now)
|
Method Summary | |
---|---|
void |
addMessageId(long id)
|
byte[] |
getData()
raw unfragmented message to send |
long |
getExpiration()
|
int |
getFragmentNumber()
which fragment are we working on (0 for the first fragment) |
long |
getLifetime()
|
long |
getMessageId()
|
java.util.List |
getMessageIds()
|
int |
getOffset()
index into the data to be sent |
Hash |
getToRouter()
may be null |
TunnelId |
getToTunnel()
may be null |
void |
incrementFragmentNumber()
ok, fragment sent, increment what the next will be |
void |
setOffset(int offset)
move the offset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Hash _toRouter
protected TunnelId _toTunnel
protected long _messageId
protected long _expiration
protected byte[] _remaining
protected int _offset
protected int _fragmentNumber
protected long _created
Constructor Detail |
---|
public TunnelGateway.Pending(I2NPMessage message, Hash toRouter, TunnelId toTunnel)
public TunnelGateway.Pending(I2NPMessage message, Hash toRouter, TunnelId toTunnel, long now)
Method Detail |
---|
public Hash getToRouter()
public TunnelId getToTunnel()
public long getMessageId()
public long getExpiration()
public byte[] getData()
public int getOffset()
public void setOffset(int offset)
public long getLifetime()
public int getFragmentNumber()
public void incrementFragmentNumber()
public void addMessageId(long id)
public java.util.List getMessageIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |