public class HopConfig extends Object
| Constructor and Description |
|---|
HopConfig() |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getAndResetRecentMessagesCount()
This returns the number of processed messages since the last time this was called,
and resets the count.
|
long |
getCreation()
when was this tunnel created (in ms since the epoch)?
|
long |
getExpiration()
when does this tunnel expire (in ms since the epoch)?
|
net.i2p.data.SessionKey |
getIVKey()
what key should we use to encrypt the preIV before passing it on?
|
net.i2p.data.SessionKey |
getLayerKey()
what key should we use to encrypt the layer before passing it on?
|
int |
getProcessedMessagesCount() |
net.i2p.data.Hash |
getReceiveFrom()
what is the previous peer in the tunnel (null if gateway)
|
net.i2p.data.TunnelId |
getReceiveTunnel()
What tunnel ID are we receiving on? (null if uninitialized)
|
long |
getReceiveTunnelId()
What tunnel ID are we receiving on? (0 if uninitialized)
|
int |
getRecentMessagesCount()
This returns the number of processed messages since
the last time getAndResetRecentMessagesCount() was called.
|
net.i2p.data.Hash |
getSendTo()
what is the next peer in the tunnel (null if endpoint)
|
net.i2p.data.TunnelId |
getSendTunnel()
What is the next tunnel ID we are sending to? (null if endpoint)
|
long |
getSendTunnelId()
What is the next tunnel ID we are sending to? (0 if endpoint)
|
void |
incrementProcessedMessages()
Take note of a message being pumped through this tunnel.
|
void |
setCreation(long when) |
void |
setExpiration(long when) |
void |
setIVKey(net.i2p.data.SessionKey key) |
void |
setLayerKey(net.i2p.data.SessionKey key) |
void |
setReceiveFrom(net.i2p.data.Hash from)
Do not set for gateway
|
void |
setReceiveTunnelId(long id) |
void |
setReceiveTunnelId(net.i2p.data.TunnelId id) |
void |
setSendTo(net.i2p.data.Hash to)
Do not set for endpoint
|
void |
setSendTunnelId(long id)
Do not set for endpoint
|
void |
setSendTunnelId(net.i2p.data.TunnelId id)
Do not set for endpoint
|
String |
toString() |
public long getReceiveTunnelId()
public net.i2p.data.TunnelId getReceiveTunnel()
public void setReceiveTunnelId(net.i2p.data.TunnelId id)
public void setReceiveTunnelId(long id)
id - 1 to 0xffffffffIllegalArgumentException - if less than or equal to zero or greater than max valuepublic net.i2p.data.Hash getReceiveFrom()
public void setReceiveFrom(net.i2p.data.Hash from)
public long getSendTunnelId()
public net.i2p.data.TunnelId getSendTunnel()
public void setSendTunnelId(net.i2p.data.TunnelId id)
public void setSendTunnelId(long id)
id - 1 to 0xffffffffIllegalArgumentException - if less than or equal to zero or greater than max valuepublic net.i2p.data.Hash getSendTo()
public void setSendTo(net.i2p.data.Hash to)
public net.i2p.data.SessionKey getLayerKey()
public void setLayerKey(net.i2p.data.SessionKey key)
public net.i2p.data.SessionKey getIVKey()
public void setIVKey(net.i2p.data.SessionKey key)
public long getExpiration()
public void setExpiration(long when)
public long getCreation()
public void setCreation(long when)
public void incrementProcessedMessages()
public int getProcessedMessagesCount()
public int getRecentMessagesCount()
int getAndResetRecentMessagesCount()