com.aelitis.azureus.core.dht.transport.udp.impl
Class DHTTransportAlternativeContactImpl

java.lang.Object
  extended by com.aelitis.azureus.core.dht.transport.udp.impl.DHTTransportAlternativeContactImpl
All Implemented Interfaces:
DHTTransportAlternativeContact

public class DHTTransportAlternativeContactImpl
extends Object
implements DHTTransportAlternativeContact


Constructor Summary
protected DHTTransportAlternativeContactImpl(byte _network_type, byte _version, short _age, byte[] _encoded)
           
 
Method Summary
 int getAge()
          Gets the contact's age since last known to be alive in seconds
 int getID()
          A good-enough ID to spot duplicates - must be equal to Arrays.hashCode( BEncode( getProperties()));
 int getLastAlive()
           
 int getNetworkType()
           
 Map<String,Object> getProperties()
           
 int getVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHTTransportAlternativeContactImpl

protected DHTTransportAlternativeContactImpl(byte _network_type,
                                             byte _version,
                                             short _age,
                                             byte[] _encoded)
Method Detail

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