|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkConnection
Represents a managed network connection, over which messages can be sent and received.
Nested Class Summary | |
---|---|
static interface |
NetworkConnection.ConnectionListener
Listener for notification of connection events. |
Method Summary | |
---|---|
void |
close(java.lang.String reason)
Close and shutdown this connection. |
void |
connect(java.nio.ByteBuffer initial_outbound_data,
int priority,
NetworkConnection.ConnectionListener listener)
|
void |
connect(int priority,
NetworkConnection.ConnectionListener listener)
Connect this connection's transport, i.e. |
Transport |
detachTransport()
Decouples the transport from this network connection so it can be reused |
void |
enableEnhancedMessageProcessing(boolean enable,
int partition_id)
Upgrade the connection to high-speed transfer processing. |
Transport |
getTransport()
Get the connection's data transport interface. |
java.lang.Object |
getUserData(java.lang.Object key)
|
boolean |
isConnected()
|
java.lang.Object |
setUserData(java.lang.Object key,
java.lang.Object value)
|
void |
startMessageProcessing()
Begin processing incoming and outgoing message queues. |
Methods inherited from interface com.aelitis.azureus.core.networkmanager.NetworkConnectionBase |
---|
addRateLimiter, getDownloadLimit, getEndpoint, getIncomingMessageQueue, getMssSize, getOutgoingMessageQueue, getRateLimiters, getString, getTransportBase, getUploadLimit, isIncoming, isLANLocal, notifyOfException, removeRateLimiter, setDownloadLimit, setUploadLimit |
Method Detail |
---|
void connect(int priority, NetworkConnection.ConnectionListener listener)
listener
- notified on connect success or failurevoid connect(java.nio.ByteBuffer initial_outbound_data, int priority, NetworkConnection.ConnectionListener listener)
void close(java.lang.String reason)
void startMessageProcessing()
upload_group
- upload rate limit group to usedownload_group
- download rate limit group to usevoid enableEnhancedMessageProcessing(boolean enable, int partition_id)
enable
- true for high-speed processing, false for normal processingTransport detachTransport()
Transport getTransport()
boolean isConnected()
java.lang.Object setUserData(java.lang.Object key, java.lang.Object value)
java.lang.Object getUserData(java.lang.Object key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |