|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CL
- public interface Connection<CL>
Interface to an instance of a connection on a host.
Nested Class Summary | |
---|---|
static interface |
Connection.AsyncOpenCallback<CL>
|
Method Summary | ||
---|---|---|
void |
close()
Shut down the connection. |
|
|
execute(Operation<CL,R> op)
Execute an operation on the connection and return a result |
|
Host |
getHost()
Get the host for this connection |
|
HostConnectionPool<CL> |
getHostConnectionPool()
Get the parent host connection pool. |
|
ConnectionException |
getLastException()
Get the last exception that caused the connection to be closed |
|
long |
getOperationCount()
Number of operations performed on this connections since it was opened |
|
void |
open()
Open a new connection |
|
void |
openAsync(Connection.AsyncOpenCallback<CL> callback)
Open a connection asynchronously and call the callback on connection or failure |
Method Detail |
---|
<R> OperationResult<R> execute(Operation<CL,R> op) throws ConnectionException
R
- op
-
ConnectionException
void close()
HostConnectionPool<CL> getHostConnectionPool()
Host getHost()
ConnectionException getLastException()
void open() throws ConnectionException
ConnectionException
void openAsync(Connection.AsyncOpenCallback<CL> callback)
callback
- long getOperationCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |