Package com.biglybt.core.dht.router
Interface DHTRouterContact
-
- All Known Implementing Classes:
DHTRouterContactImpl
,DHTRouterContactWrapper
public interface DHTRouterContact
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DHTRouterContactAttachment
getAttachment()
byte[]
getID()
java.lang.String
getString()
long
getTimeAlive()
time between first establishing the contact was alive and now, assuming that its not failing.boolean
hasBeenAlive()
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
isBucketEntry()
Returns whether this router contact is in a bucket.boolean
isFailing()
Whether or not the contact has failed once or more since last alive (if ever)boolean
isReplacement()
Returns whether this router contact is a replacement.
-
-
-
Method Detail
-
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
java.lang.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
-
-