RouterDoSThrottle
, RouterThrottleImpl
public interface RouterThrottle
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
acceptNetDbLookupRequest(Hash key) |
Should we accept the netDb lookup message, replying either with the
value or some closer peers, or should we simply drop it due to overload?
|
boolean |
acceptNetworkMessage() |
Should we accept any more data from the network for any sort of message,
taking into account our current load, or should we simply slow down?
|
int |
acceptTunnelRequest() |
Should we accept the request to participate in the given tunnel,
taking into account our current load and bandwidth usage commitments?
|
void |
cancelShutdownStatus() |
|
double |
getInboundRateDelta() |
How much faster (or if negative, slower) we are receiving data as
opposed to our longer term averages?
|
long |
getMessageDelay() |
How backed up we are at the moment processing messages (in milliseconds)
|
long |
getTunnelLag() |
How backed up our tunnels are at the moment (in milliseconds)
|
java.lang.String |
getTunnelStatus() |
Message on the state of participating tunnel acceptance
|
void |
setShutdownStatus() |
|
void |
setTunnelStatus(java.lang.String msg) |
boolean acceptNetworkMessage()
int acceptTunnelRequest()
boolean acceptNetDbLookupRequest(Hash key)
long getMessageDelay()
long getTunnelLag()
double getInboundRateDelta()
java.lang.String getTunnelStatus()
void setTunnelStatus(java.lang.String msg)
void setShutdownStatus()
void cancelShutdownStatus()