org.scale7.cassandra.pelops.pool
Class NoOpNodeSuspensionStrategy
java.lang.Object
org.scale7.cassandra.pelops.pool.NoOpNodeSuspensionStrategy
- All Implemented Interfaces:
- CommonsBackedPool.INodeSuspensionStrategy
public class NoOpNodeSuspensionStrategy
- extends Object
- implements CommonsBackedPool.INodeSuspensionStrategy
An implementation of the CommonsBackedPool.INodeSuspensionStrategy
that does nothing.
Method Summary |
boolean |
evaluate(CommonsBackedPool pool,
org.scale7.cassandra.pelops.pool.PooledNode node)
Called for each node in the pool by the pools background thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpNodeSuspensionStrategy
public NoOpNodeSuspensionStrategy()
evaluate
public boolean evaluate(CommonsBackedPool pool,
org.scale7.cassandra.pelops.pool.PooledNode node)
- Description copied from interface:
CommonsBackedPool.INodeSuspensionStrategy
- Called for each node in the pool by the pools background thread.
- Specified by:
evaluate
in interface CommonsBackedPool.INodeSuspensionStrategy
- Parameters:
pool
- the pool (just in case you need it)node
- the node to evaluate
- Returns:
- true if the node was suspending, otherwise false
Copyright © 2011. All Rights Reserved.