public interface

Connection

com.netflix.astyanax.connectionpool.Connection<CL>

Class Overview

Interface to an instance of a connection on a host.

Summary

Nested Classes
interface Connection.AsyncOpenCallback<CL>  
Public Methods
abstract void close()
Shut down the connection.
abstract <R> OperationResult<R> execute(Operation<CL, R> op)
Execute an operation on the connection and return a result@return
abstract Host getHost()
Get the host for this connection
abstract HostConnectionPool<CL> getHostConnectionPool()
Get the parent host connection pool.
abstract ConnectionException getLastException()
Get the last exception that caused the connection to be closed
abstract long getOperationCount()
Number of operations performed on this connections since it was opened
abstract void open()
Open a new connection
abstract void openAsync(AsyncOpenCallback<CL> callback)
Open a connection asynchronously and call the callback on connection or failure

Public Methods

public abstract void close ()

Shut down the connection. isOpen() will now return false.

public abstract OperationResult<R> execute (Operation<CL, R> op)

Execute an operation on the connection and return a result@return

public abstract Host getHost ()

Get the host for this connection

public abstract HostConnectionPool<CL> getHostConnectionPool ()

Get the parent host connection pool.

public abstract ConnectionException getLastException ()

Get the last exception that caused the connection to be closed

public abstract long getOperationCount ()

Number of operations performed on this connections since it was opened

public abstract void open ()

Open a new connection

public abstract void openAsync (AsyncOpenCallback<CL> callback)

Open a connection asynchronously and call the callback on connection or failure