public interface TimedOutNodesList
Modifier and Type | Method and Description |
---|---|
long |
getTimeoutTime(PeerNode peer,
short htl,
long now,
boolean forPerNodeFailureTables)
When does the timeout for this node end?
|
long getTimeoutTime(PeerNode peer, short htl, long now, boolean forPerNodeFailureTables)
peer
- The peer we are proposing to route to.htl
- Timeouts with lower HTL than this will be ignored.now
- The current time from System.currentTimeMillis().forPerNodeFailureTables
- If true, return the timeout for purposes of
per-node failure tables i.e. which to route to (paranoid high); if false,
return the timeout for purposes of RecentlyFailed request quenching
(trusting low).