com.aelitis.azureus.core.proxy
Interface AEProxyConnection

All Known Implementing Classes:
AEProxyConnectionImpl

public interface AEProxyConnection

Author:
parg

Method Summary
 void addListener(AEProxyConnectionListener l)
           
 void cancelConnectSelect(SocketChannel channel)
           
 void cancelReadSelect(SocketChannel channel)
           
 void cancelWriteSelect(SocketChannel channel)
           
 void close()
          close the connection
 void failed(Throwable cause)
          indicate that the connection has failed
 String getName()
           
 SocketChannel getSourceChannel()
          returns the non-blocking channel associated with the initiator of this proxy connection
 boolean isClosed()
           
 void removeListener(AEProxyConnectionListener l)
           
 void requestConnectSelect(SocketChannel channel)
           
 void requestReadSelect(SocketChannel channel)
           
 void requestWriteSelect(SocketChannel channel)
           
 void setConnected()
          marks the transition between connecting and connected
 void setConnectState(AEProxyState state)
           
 void setReadState(AEProxyState state)
           
 void setTimeStamp()
          marks the last time that something happened on the connection for read timeout purposes
 void setWriteState(AEProxyState state)
           
 

Method Detail

getName

String getName()

getSourceChannel

SocketChannel getSourceChannel()
returns the non-blocking channel associated with the initiator of this proxy connection

Returns:

setReadState

void setReadState(AEProxyState state)

setWriteState

void setWriteState(AEProxyState state)

setConnectState

void setConnectState(AEProxyState state)

requestReadSelect

void requestReadSelect(SocketChannel channel)

cancelReadSelect

void cancelReadSelect(SocketChannel channel)

requestWriteSelect

void requestWriteSelect(SocketChannel channel)

cancelWriteSelect

void cancelWriteSelect(SocketChannel channel)

requestConnectSelect

void requestConnectSelect(SocketChannel channel)

cancelConnectSelect

void cancelConnectSelect(SocketChannel channel)

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

void failed(Throwable cause)
indicate that the connection has failed

Parameters:
cause -

close

void close()
close the connection


isClosed

boolean isClosed()

addListener

void addListener(AEProxyConnectionListener l)

removeListener

void removeListener(AEProxyConnectionListener l)