Package com.biglybt.core.proxy
Interface AEProxyConnection
- All Known Implementing Classes:
AEProxyConnectionImpl
public interface AEProxyConnection
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
cancelConnectSelect
(SocketChannel channel) void
cancelReadSelect
(SocketChannel channel) void
cancelWriteSelect
(SocketChannel channel) void
close()
close the connectionvoid
indicate that the connection has failedgetName()
returns the non-blocking channel associated with the initiator of this proxy connectionboolean
isClosed()
void
void
requestConnectSelect
(SocketChannel channel) void
requestReadSelect
(SocketChannel channel) void
requestWriteSelect
(SocketChannel channel) void
marks the transition between connecting and connectedvoid
setConnectState
(AEProxyState state) void
setReadState
(AEProxyState state) void
marks the last time that something happened on the connection for read timeout purposesvoid
setWriteState
(AEProxyState state)
-
Method Details
-
getName
String getName() -
getSourceChannel
SocketChannel getSourceChannel()returns the non-blocking channel associated with the initiator of this proxy connection- Returns:
-
setReadState
-
setWriteState
-
setConnectState
-
requestReadSelect
-
cancelReadSelect
-
requestWriteSelect
-
cancelWriteSelect
-
requestConnectSelect
-
cancelConnectSelect
-
setConnected
void setConnected()marks the transition between connecting and connected -
setTimeStamp
void setTimeStamp()marks the last time that something happened on the connection for read timeout purposes -
failed
indicate that the connection has failed- Parameters:
cause
-
-
close
void close()close the connection -
isClosed
boolean isClosed() -
addListener
-
removeListener
-