com.aelitis.azureus.core.dht.transport.udp.impl
Class DHTTransportAlternativeContactImpl
java.lang.Object
com.aelitis.azureus.core.dht.transport.udp.impl.DHTTransportAlternativeContactImpl
- All Implemented Interfaces:
- DHTTransportAlternativeContact
public class DHTTransportAlternativeContactImpl
- extends Object
- implements DHTTransportAlternativeContact
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DHTTransportAlternativeContactImpl
protected DHTTransportAlternativeContactImpl(byte _network_type,
byte _version,
short _age,
byte[] _encoded)
getNetworkType
public int getNetworkType()
- Specified by:
getNetworkType
in interface DHTTransportAlternativeContact
getVersion
public int getVersion()
- Specified by:
getVersion
in interface DHTTransportAlternativeContact
getID
public int getID()
- Description copied from interface:
DHTTransportAlternativeContact
- A good-enough ID to spot duplicates - must be equal to Arrays.hashCode( BEncode( getProperties()));
- Specified by:
getID
in interface DHTTransportAlternativeContact
- Returns:
getLastAlive
public int getLastAlive()
- Specified by:
getLastAlive
in interface DHTTransportAlternativeContact
- Returns:
getAge
public int getAge()
- Description copied from interface:
DHTTransportAlternativeContact
- Gets the contact's age since last known to be alive in seconds
- Specified by:
getAge
in interface DHTTransportAlternativeContact
- Returns:
getProperties
public Map<String,Object> getProperties()
- Specified by:
getProperties
in interface DHTTransportAlternativeContact