Package net.spy.memcached.protocol.ascii
Class TouchOperationImpl
- java.lang.Object
-
- net.spy.memcached.compat.SpyObject
-
- net.spy.memcached.protocol.BaseOperationImpl
-
- net.spy.memcached.protocol.ascii.OperationImpl
-
- net.spy.memcached.protocol.ascii.TouchOperationImpl
-
- All Implemented Interfaces:
KeyedOperation
,Operation
,TouchOperation
final class TouchOperationImpl extends OperationImpl implements TouchOperation
Memcached touch operation.
-
-
Field Summary
Fields Modifier and Type Field Description private int
exp
private java.lang.String
key
private static OperationStatus
OK
private static int
OVERHEAD
-
Fields inherited from class net.spy.memcached.protocol.ascii.OperationImpl
CRLF
-
Fields inherited from class net.spy.memcached.protocol.BaseOperationImpl
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT
-
-
Constructor Summary
Constructors Constructor Description TouchOperationImpl(java.lang.String k, int t, OperationCallback cb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getExpiration()
Get the expiration to set in case of a new entry.java.util.Collection<java.lang.String>
getKeys()
Get the keys requested in this GetOperation.void
handleLine(java.lang.String line)
void
initialize()
Initialize this operation.java.lang.String
toString()
-
Methods inherited from class net.spy.memcached.protocol.ascii.OperationImpl
classifyError, getErrorMsg, getReadType, matchStatus, readFromBuffer, setArguments, setReadType
-
Methods inherited from class net.spy.memcached.protocol.BaseOperationImpl
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setCloneCount, setHandlingNode, timeOut, transitionState, wasCancelled, writeComplete, writing
-
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.Operation
addClone, cancel, getBuffer, getCallback, getCloneCount, getErrorMsg, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setCloneCount, setHandlingNode, timeOut, writeComplete, writing
-
-
-
-
Field Detail
-
OVERHEAD
private static final int OVERHEAD
- See Also:
- Constant Field Values
-
OK
private static final OperationStatus OK
-
key
private final java.lang.String key
-
exp
private final int exp
-
-
Constructor Detail
-
TouchOperationImpl
public TouchOperationImpl(java.lang.String k, int t, OperationCallback cb)
-
-
Method Detail
-
getKeys
public java.util.Collection<java.lang.String> getKeys()
Description copied from interface:KeyedOperation
Get the keys requested in this GetOperation.- Specified by:
getKeys
in interfaceKeyedOperation
-
handleLine
public void handleLine(java.lang.String line)
- Specified by:
handleLine
in classOperationImpl
-
initialize
public void initialize()
Description copied from interface:Operation
Initialize this operation. This is used to prepare output byte buffers and stuff.- Specified by:
initialize
in interfaceOperation
- Specified by:
initialize
in classBaseOperationImpl
-
getExpiration
public int getExpiration()
Description copied from interface:TouchOperation
Get the expiration to set in case of a new entry.- Specified by:
getExpiration
in interfaceTouchOperation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-