LimeWire Consolidated API

org.limewire.net.address
Interface AddressResolver

All Known Implementing Classes:
SameNATAddressResolver, XMPPAddressResolver

public interface AddressResolver

Defines the requirements for an entity that can resolve addresses to other addresses.


Field Summary
static String LOGGING_CATEGORY
          Logging category name for AddressResolver's to use
 
Method Summary
 boolean canResolve(Address address)
          Returns true if it can resolve the given address.
<T extends AddressResolutionObserver>
T
resolve(Address address, T observer)
          Asynchronously resolves the address to possibly several other addresses and notifies observer of the resolved addresses.
 

Field Detail

LOGGING_CATEGORY

static final String LOGGING_CATEGORY
Logging category name for AddressResolver's to use

See Also:
Constant Field Values
Method Detail

canResolve

boolean canResolve(Address address)
Returns true if it can resolve the given address. This means it should take its own state and the information provided by the address into account. This call must be non-blocking.


resolve

<T extends AddressResolutionObserver> T resolve(Address address,
                                                T observer)
Asynchronously resolves the address to possibly several other addresses and notifies observer of the resolved addresses.

Returns:
the observer to allow for fluent access

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.