C
- the Connection
type.public interface ConnectionManager<C extends Connection> extends Closeable
Connection
s.Modifier and Type | Interface and Description |
---|---|
static class |
ConnectionManager.InitializationType
An enumeration of the ways in which a connection may be initialized.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down this manager and reclaims its resources.
|
List<C> |
getConnections()
Gets the list of
Connection s. |
<T> Future<C> |
init(ConnectionManager.InitializationType type,
ConnectionHandler<? super C> handler,
T argument)
Initializes a
Connection . |
String |
toString()
Creates a human-readable representation of this manager.
|
<T> Future<C> init(ConnectionManager.InitializationType type, ConnectionHandler<? super C> handler, T argument)
Connection
.T
- the argument type.type
- the ConnectionManager.InitializationType
.handler
- the ConnectionHandler
.argument
- the argument.Future
for retrieving the newly initialized Connection
.ConnectionManager.InitializationType
List<C> getConnections()
Connection
s.void close()
close
in interface AutoCloseable
close
in interface Closeable