Package com.biglybt.pif.network
Interface ConnectionListener
-
public interface ConnectionListener
Listener for notification of connection events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
connectFailure(java.lang.Throwable failure_msg)
The connection attempt failed.void
connectStarted()
The connection establishment process has started, i.e.void
connectSuccess()
The connection attempt succeeded.void
exceptionThrown(java.lang.Throwable error)
Handle exception thrown by this connection.
-
-
-
Method Detail
-
connectStarted
void connectStarted()
The connection establishment process has started, i.e. the connection is actively being attempted.
-
connectSuccess
void connectSuccess()
The connection attempt succeeded. The connection is now established. NOTE: Called only during initial connect attempt.
-
connectFailure
void connectFailure(java.lang.Throwable failure_msg)
The connection attempt failed. NOTE: Called only during initial connect attempt.- Parameters:
failure_msg
- failure reason
-
exceptionThrown
void exceptionThrown(java.lang.Throwable error)
Handle exception thrown by this connection. NOTE: Can be called at any time during connection lifetime.- Parameters:
error
- exception
-
-