public class OfferReplyTag extends UIDTag
accepted, noRecordUnlock, notRoutedOnwards, sourceRestarted, tracker, unlockedHandler| Constructor and Description |
|---|
OfferReplyTag(boolean isSSK,
PeerNode source,
boolean realTimeFlag,
long uid,
Node node) |
| Modifier and Type | Method and Description |
|---|---|
int |
expectedTransfersIn(boolean ignoreLocalVsRemote,
int outwardTransfersPerInsert,
boolean forAccept)
Add up the expected transfers in.
|
int |
expectedTransfersOut(boolean ignoreLocalVsRemote,
int outwardTransfersPerInsert,
boolean forAccept)
Add up the expected transfers out.
|
boolean |
isInsert() |
boolean |
isOfferReply() |
boolean |
isSSK() |
void |
logStillPresent(java.lang.Long uid) |
addRoutedTo, clearWaitingForSlot, countAsSourceRestarted, currentlyFetchingOfferedKeyFrom, currentlyRoutingTo, getSource, handlingTimeout, hasRoutedTo, hasSourceReallyRestarted, innerUnlock, isLocal, isSource, isWaitingForSlot, maybeLogStillPresent, mustUnlock, onRestartOrDisconnectSource, postUnlock, reassignToSelf, removeFetchingOfferedKeyFrom, removeRoutingTo, setAccepted, setNotRoutedOnwards, setWaitingForSlot, shouldStop, timedOutToHandlerButContinued, toString, unlockHandler, unlockHandler, wasLocalpublic void logStillPresent(java.lang.Long uid)
logStillPresent in class UIDTagpublic int expectedTransfersIn(boolean ignoreLocalVsRemote,
int outwardTransfersPerInsert,
boolean forAccept)
UIDTagexpectedTransfersIn in class UIDTagignoreLocalVsRemote - If true, pretend that the request is remote even if it's local.outwardTransfersPerInsert - Expected number of outward transfers for an insert.forAccept - If true, we are deciding whether to accept a request.
If false, we are deciding whether to SEND a request. We need to be more
careful for the latter than the former, to avoid unnecessary rejections
and mandatory backoffs.public int expectedTransfersOut(boolean ignoreLocalVsRemote,
int outwardTransfersPerInsert,
boolean forAccept)
UIDTagexpectedTransfersOut in class UIDTagignoreLocalVsRemote - If true, pretend that the request is remote even if it's local.outwardTransfersPerInsert - Expected number of outward transfers for an insert.forAccept - If true, we are deciding whether to accept a request.
If false, we are deciding whether to SEND a request. We need to be more
careful for the latter than the former, to avoid unnecessary rejections
and mandatory backoffs.public boolean isOfferReply()
isOfferReply in class UIDTag