Class ConnectionContext
java.lang.Object
org.serviceconnector.net.connection.ConnectionContext
The Class ConnectionContext.
- Author:
- JTraber
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionContext(IConnection connection, IIdleConnectionCallback idleCallback, int idleTimeoutSeconds) Instantiates a new connection context. -
Method Summary
Modifier and TypeMethodDescriptionGets the connection.Gets the idle callback.intGets the idle timeout in seconds.
-
Constructor Details
-
ConnectionContext
public ConnectionContext(IConnection connection, IIdleConnectionCallback idleCallback, int idleTimeoutSeconds) Instantiates a new connection context.- Parameters:
connection- the connectionidleCallback- the idle callbackidleTimeoutSeconds- the idle timeout
-
-
Method Details
-
getConnection
Gets the connection.- Returns:
- the connection
-
getIdleTimeoutSeconds
public int getIdleTimeoutSeconds()Gets the idle timeout in seconds.- Returns:
- the idle timeout
-
getIdleCallback
Gets the idle callback.- Returns:
- the idle callback
-