Interface DHTTransportAlternativeContact

All Known Implementing Classes:
DHTTransportAlternativeContactImpl

public interface DHTTransportAlternativeContact
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Gets the contact's age since last known to be alive in seconds Obviously this varies so don't use it for sorting!
    int
    A good-enough ID to spot duplicates - must be equal to Arrays.hashCode( BEncode( getProperties()));
    int
     
    int
     
     
    int
     
  • Method Details

    • getNetworkType

      int getNetworkType()
    • getVersion

      int getVersion()
    • getID

      int getID()
      A good-enough ID to spot duplicates - must be equal to Arrays.hashCode( BEncode( getProperties()));
      Returns:
    • getLastAlive

      int getLastAlive()
      Returns:
      alive time in seconds since "mono time" start - can be negative
    • getAge

      default int getAge()
      Gets the contact's age since last known to be alive in seconds Obviously this varies so don't use it for sorting!
      Returns:
    • getProperties

      Map<String,Object> getProperties()