|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.spy.memcached.compat.SpyObject
net.spy.memcached.protocol.BaseOperationImpl
net.spy.memcached.protocol.ascii.GetAndTouchOperationImpl
public class GetAndTouchOperationImpl
Implementation of the get and touch operation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.spy.memcached.ops.GetAndTouchOperation |
---|
GetAndTouchOperation.Callback |
Field Summary | |
---|---|
protected static byte[] |
CRLF
|
Fields inherited from class net.spy.memcached.protocol.BaseOperationImpl |
---|
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT |
Constructor Summary | |
---|---|
GetAndTouchOperationImpl(java.lang.String c,
int e,
GetAndTouchOperation.Callback cb,
java.lang.String k)
|
Method Summary | |
---|---|
java.util.Collection<java.lang.String> |
getKeys()
Get the keys this GetOperation is looking for. |
protected net.spy.memcached.protocol.ascii.OperationReadType |
getReadType()
|
void |
handleLine(java.lang.String line)
|
void |
handleRead(java.nio.ByteBuffer b)
Handle a raw data read. |
void |
initialize()
Initialize this operation. |
protected OperationStatus |
matchStatus(java.lang.String line,
OperationStatus... statii)
Match the status line provided against one of the given OperationStatus objects. |
void |
readFromBuffer(java.nio.ByteBuffer data)
Read data from the given byte buffer and dispatch to the appropriate read mechanism. |
protected void |
setArguments(java.nio.ByteBuffer bb,
java.lang.Object... args)
Set some arguments for an operation into the given byte buffer. |
protected void |
setReadType(net.spy.memcached.protocol.ascii.OperationReadType to)
Set the read type of this operation. |
java.lang.String |
toString()
|
protected void |
wasCancelled()
This is called on each subclass whenever an operation was cancelled. |
Methods inherited from class net.spy.memcached.protocol.BaseOperationImpl |
---|
cancel, getBuffer, getCallback, getException, getHandlingNode, getState, handleError, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setHandlingNode, timeOut, transitionState, writeComplete, writing |
Methods inherited from class net.spy.memcached.compat.SpyObject |
---|
getLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.spy.memcached.ops.KeyedOperation |
---|
getKeys |
Methods inherited from interface net.spy.memcached.ops.Operation |
---|
cancel, getBuffer, getCallback, getException, getHandlingNode, getState, handleRead, hasErrored, initialize, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setHandlingNode, timeOut, writeComplete, writing |
Field Detail |
---|
protected static final byte[] CRLF
Constructor Detail |
---|
public GetAndTouchOperationImpl(java.lang.String c, int e, GetAndTouchOperation.Callback cb, java.lang.String k)
Method Detail |
---|
public final java.util.Collection<java.lang.String> getKeys()
public final void handleLine(java.lang.String line)
public final void handleRead(java.nio.ByteBuffer b)
Operation
handleRead
in interface Operation
handleRead
in class BaseOperationImpl
public final void initialize()
Operation
initialize
in interface Operation
initialize
in class BaseOperationImpl
protected final void wasCancelled()
BaseOperationImpl
wasCancelled
in class BaseOperationImpl
public java.lang.String toString()
toString
in class java.lang.Object
protected final OperationStatus matchStatus(java.lang.String line, OperationStatus... statii)
line
- the current linestatii
- several status objects
protected final net.spy.memcached.protocol.ascii.OperationReadType getReadType()
protected final void setReadType(net.spy.memcached.protocol.ascii.OperationReadType to)
protected final void setArguments(java.nio.ByteBuffer bb, java.lang.Object... args)
public void readFromBuffer(java.nio.ByteBuffer data) throws java.io.IOException
Operation
readFromBuffer
in interface Operation
readFromBuffer
in class BaseOperationImpl
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |