Package com.biglybt.core.dht.router
Interface DHTRouterContact
- All Known Implementing Classes:
DHTRouterContactImpl
,DHTRouterContactWrapper
public interface DHTRouterContact
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getID()
long
time between first establishing the contact was alive and now, assuming that its not failing.boolean
indicates whether or not a message has been received from, or an operation has successfully been made to, the contact.boolean
isAlive()
Whether or not the contact's last interaction was successfulboolean
Returns whether this router contact is in a bucket.boolean
Whether or not the contact has failed once or more since last alive (if ever)boolean
Returns 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:
true
if in a bucket,false
otherwise
-
isReplacement
boolean isReplacement()Returns whether this router contact is a replacement.- Returns:
true
if a replacement,false
otherwise
-