Interface TCPConnectionManager.ConnectListener
-
- Enclosing class:
- TCPConnectionManager
public static interface TCPConnectionManager.ConnectListener
Listener for notification of connection establishment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
connectAttemptStarted(int default_timeout)
The connection establishment process has started, i.e.void
connectFailure(java.lang.Throwable failure_msg)
The connection attempt failed.void
connectSuccess(java.nio.channels.SocketChannel channel)
The connection attempt succeeded.default java.lang.Object
getConnectionProperty(java.lang.String property_name)
See AEProxyFactory for properties
-
-
-
Method Detail
-
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
void connectSuccess(java.nio.channels.SocketChannel channel)
The connection attempt succeeded.- Parameters:
channel
- connected socket channel
-
connectFailure
void connectFailure(java.lang.Throwable failure_msg)
The connection attempt failed.- Parameters:
failure_msg
- failure reason
-
getConnectionProperty
default java.lang.Object getConnectionProperty(java.lang.String property_name)
See AEProxyFactory for properties- Parameters:
property_name
-- Returns:
-
-