|
|||||||||
| 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()
|
|
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 |
|
| Methods inherited from interface com.netflix.astyanax.connectionpool.ConnectionContext |
|---|
getMetadata, hasMetadata, setMetadata |
| Method Detail |
|---|
<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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||