org.infinispan.server.memcached.commands
Class NumericCommand
java.lang.Object
org.infinispan.server.memcached.commands.NumericCommand
- All Implemented Interfaces:
- Command, TextCommand
- Direct Known Subclasses:
- DecrementCommand, IncrementCommand
public abstract class NumericCommand
- extends Object
- implements TextCommand
NumericCommand.
- Since:
- 4.1
- Author:
- Galder ZamarreƱo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericCommand
public NumericCommand(Cache cache,
CommandType type,
String key,
String delta,
boolean noReply)
getType
public CommandType getType()
- Specified by:
getType
in interface TextCommand
perform
public Object perform(ChannelHandlerContext ctx)
throws Throwable
- Specified by:
perform
in interface Command
- Throws:
Throwable
operate
protected abstract BigInteger operate(BigInteger oldValue,
BigInteger newValue)
newNumericCommand
public static TextCommand newNumericCommand(Cache cache,
CommandType type,
String key,
String delta,
boolean noReply)
throws IOException
- Throws:
IOException
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.