Interface TCPConnectionManager.ConnectListener
- Enclosing class:
TCPConnectionManager
public static interface TCPConnectionManager.ConnectListener
Listener for notification of connection establishment.
-
Method Summary
Modifier and TypeMethodDescriptionintconnectAttemptStarted(int default_timeout) The connection establishment process has started, i.e.voidconnectFailure(Throwable failure_msg) The connection attempt failed.voidconnectSuccess(SocketChannel channel) The connection attempt succeeded.default ObjectgetConnectionProperty(String property_name) See AEProxyFactory for properties
-
Method Details
-
connectAttemptStarted
int connectAttemptStarted(int default_timeout) The connection establishment process has started, i.e. the connection is actively being attempted.- Returns:
- adjusted connect timeout
-
connectSuccess
The connection attempt succeeded.- Parameters:
channel- connected socket channel
-
connectFailure
The connection attempt failed.- Parameters:
failure_msg- failure reason
-
getConnectionProperty
-