Interface DHTRouterContact
- All Known Implementing Classes:
DHTRouterContactImpl, DHTRouterContactWrapper
public interface DHTRouterContact
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getID()longtime between first establishing the contact was alive and now, assuming that its not failing.booleanindicates whether or not a message has been received from, or an operation has successfully been made to, the contact.booleanisAlive()Whether or not the contact's last interaction was successfulbooleanReturns whether this router contact is in a bucket.booleanWhether or not the contact has failed once or more since last alive (if ever)booleanReturns whether this router contact is a replacement.
-
Method Details
-
getID
byte[] getID() -
getAttachment
DHTRouterContactAttachment getAttachment() -
hasBeenAlive
boolean hasBeenAlive()indicates whether or not a message has been received from, or an operation has successfully been made to, the contact.- Returns:
-
isFailing
boolean isFailing()Whether or not the contact has failed once or more since last alive (if ever)- Returns:
-
isAlive
boolean isAlive()Whether or not the contact's last interaction was successful- Returns:
-
getTimeAlive
long getTimeAlive()time between first establishing the contact was alive and now, assuming that its not failing. 0 -> failing- Returns:
-
getString
String getString() -
isBucketEntry
boolean isBucketEntry()Returns whether this router contact is in a bucket.- Returns:
trueif in a bucket,falseotherwise
-
isReplacement
boolean isReplacement()Returns whether this router contact is a replacement.- Returns:
trueif a replacement,falseotherwise
-