org.scale7.cassandra.pelops.pool
Interface IThriftPool.IPooledConnection

All Superinterfaces:
IConnection
All Known Implementing Classes:
CachePerNodePool.PooledConnection, CommonsBackedPool.PooledConnection, DebuggingPool.PooledConnection
Enclosing interface:
IThriftPool

public static interface IThriftPool.IPooledConnection
extends IConnection

Defines an encapsulation for a connection to a Cassandra node.

Author:
dominicwilliams, danwashusen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.scale7.cassandra.pelops.IConnection
IConnection.Config
 
Method Summary
 void corrupted()
          Specify whether an exception has been thrown during usage of the connection.
 void release()
          Release a Connection that has previously been taken from the pool.
 
Methods inherited from interface org.scale7.cassandra.pelops.IConnection
close, getAPI, getNode, isOpen, open
 

Method Detail

release

void release()
Release a Connection that has previously been taken from the pool.


corrupted

void corrupted()
Specify whether an exception has been thrown during usage of the connection. If an exception has been thrown, the connection will not re-used since it may be corrupted (for example, it may contain partially written data that disrupts the serialization of the Thrift protocol) however it is remains essential that all connection objects are released.



Copyright © 2011. All Rights Reserved.