org.infinispan.server.memcached.commands
Class NumericCommand

java.lang.Object
  extended by 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

Constructor Summary
NumericCommand(Cache cache, CommandType type, String key, String delta, boolean noReply)
           
 
Method Summary
 CommandType getType()
           
static TextCommand newNumericCommand(Cache cache, CommandType type, String key, String delta, boolean noReply)
           
protected abstract  BigInteger operate(BigInteger oldValue, BigInteger newValue)
           
 Object perform(ChannelHandlerContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.server.memcached.commands.TextCommand
acceptVisitor
 

Constructor Detail

NumericCommand

public NumericCommand(Cache cache,
                      CommandType type,
                      String key,
                      String delta,
                      boolean noReply)
Method Detail

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

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.