CL - public interface Connection<CL> extends ConnectionContext
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Connection.AsyncOpenCallback<CL> |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shut down the connection.
|
<R> OperationResult<R> |
execute(Operation<CL,R> op)
Execute an operation on the connection and return a result
|
Host |
getHost() |
HostConnectionPool<CL> |
getHostConnectionPool() |
ConnectionException |
getLastException() |
long |
getOperationCount() |
void |
open()
Open a new connection
|
void |
openAsync(Connection.AsyncOpenCallback<CL> callback)
Open a connection asynchronously and call the callback on connection or
failure
|
getMetadata, hasMetadata, setMetadata<R> OperationResult<R> execute(Operation<CL,R> op) throws ConnectionException
R - op - ConnectionExceptionvoid close()
HostConnectionPool<CL> getHostConnectionPool()
Host getHost()
ConnectionException getLastException()
void open()
throws ConnectionException
ConnectionExceptionvoid openAsync(Connection.AsyncOpenCallback<CL> callback)
callback - long getOperationCount()