Interface AEProxyConnection
- All Known Implementing Classes:
AEProxyConnectionImpl
public interface AEProxyConnection
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancelConnectSelect(SocketChannel channel) voidcancelReadSelect(SocketChannel channel) voidcancelWriteSelect(SocketChannel channel) voidclose()close the connectionvoidindicate that the connection has failedgetName()returns the non-blocking channel associated with the initiator of this proxy connectionbooleanisClosed()voidvoidrequestConnectSelect(SocketChannel channel) voidrequestReadSelect(SocketChannel channel) voidrequestWriteSelect(SocketChannel channel) voidmarks the transition between connecting and connectedvoidsetConnectState(AEProxyState state) voidsetReadState(AEProxyState state) voidmarks the last time that something happened on the connection for read timeout purposesvoidsetWriteState(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
-
close
void close()close the connection -
isClosed
boolean isClosed() -
addListener
-
removeListener
-