| Modifier and Type | Class and Description |
|---|---|
| public static interface | PoolConnector.
The contract by which the back-end can signal the pool of connection events. |
| Modifier and Type | Method and Description |
|---|---|
| public void | connect(ContextInternal
the context to use for IO context, PoolConnector.the listener listener,the callback handler with the result handler)Connects to a back-end. |
| public boolean | Returns: whether the connection is valid or notthe connection to check connection)Checks whether the connection is still valid. |
| connect | back to summary |
|---|---|
| public void connect(ContextInternal context, PoolConnector. Connects to a back-end.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid(C connection) Checks whether the connection is still valid. The pool calls this method when it checks the validity of a connection. Any connection will be evicted from the pool.
| |
A connection listener is used for each connection in the pool.
| Modifier and Type | Method and Description |
|---|---|
| public void | onConcurrencyChange(long
the concurrency concurrency)Signals the connection the concurrency changed to the |
| public void |
| onConcurrencyChange | back to summary |
|---|---|
| public void onConcurrencyChange(long concurrency) Signals the connection the concurrency changed to the
| |
| onRemove | back to summary |
|---|---|
| public void onRemove() Signal the connection needs to be remove from the pool. | |