org.infinispan.server.memcached.commands
Class IncrementCommand

java.lang.Object
  extended by org.infinispan.server.memcached.commands.NumericCommand
      extended by org.infinispan.server.memcached.commands.IncrementCommand
All Implemented Interfaces:
Command, TextCommand

public class IncrementCommand
extends NumericCommand

IncrementCommand.

Since:
4.1
Author:
Galder ZamarreƱo

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

Constructor Detail

IncrementCommand

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

acceptVisitor

public Object acceptVisitor(ChannelHandlerContext ctx,
                            TextProtocolVisitor next)
                     throws Throwable
Throws:
Throwable

operate

protected BigInteger operate(BigInteger oldValue,
                             BigInteger newValue)
Specified by:
operate in class NumericCommand

Google Analytics

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