LimeWire Consolidated API

org.limewire.net.address
Interface AddressConnector

All Known Implementing Classes:
ConnectableConnector, PushDownloadManager

public interface AddressConnector

Defines the requirements for an entity that can connect to an address and create a socket. Address connectors can optionally notify sockets manager when their connectivity has changed by firing an event on EventMulticaster which they can have injected.


Field Summary
static String LOGGING_CATEGORY
          Logging category name for AddressConnector's to use
 
Method Summary
 boolean canConnect(Address address)
          Returns true if it can connect to the given type of address.
 void connect(Address address, ConnectObserver observer)
          Connects asynchronously to the given address and notifies observer of the established socket.
 

Field Detail

LOGGING_CATEGORY

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

See Also:
Constant Field Values
Method Detail

canConnect

boolean canConnect(Address address)
Returns true if it can connect to the given type of address. This must be a non-blocking call. Evaluation should take into account the connectors initialization state.


connect

void connect(Address address,
             ConnectObserver observer)
Connects asynchronously to the given address and notifies observer of the established socket.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.