|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.astyanax.connectionpool.impl.AbstractOperationFilter<CL,R>
CL - R - public class AbstractOperationFilter<CL,R>
Class that wraps an Operation to provide extra functionality. It can be used by extending class to wrap operation executions
and then decorate the execute functionality with their own logic
| Constructor Summary | |
|---|---|
AbstractOperationFilter(Operation<CL,R> next)
|
|
| Method Summary | |
|---|---|
R |
execute(CL client,
ConnectionContext state)
Execute the operation on the client object and return the results. |
java.lang.String |
getKeyspace()
Return keyspace for this operation. |
Host |
getPinnedHost()
Return the host to run on or null to select a host using the load blancer. |
java.nio.ByteBuffer |
getRowKey()
Return the unique key on which the operation is performed or null if the operation is performed on multiple keys. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractOperationFilter(Operation<CL,R> next)
| Method Detail |
|---|
public R execute(CL client,
ConnectionContext state)
throws ConnectionException
Operation
execute in interface Operation<CL,R>client - - The client objectstate - - State and metadata specific to the connection
ConnectionExceptionpublic java.nio.ByteBuffer getRowKey()
Operation
getRowKey in interface Operation<CL,R>public java.lang.String getKeyspace()
Operation
getKeyspace in interface Operation<CL,R>public Host getPinnedHost()
Operation
getPinnedHost in interface Operation<CL,R>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||