Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.client.hotrod.impl.operations;
 
 
 
Implements "Replace" operation as defined by Hot Rod protocol specification.

Author(s):
Mircea.Markus@jboss.com
Since:
4.1
public class ReplaceOperation extends AbstractKeyValueOperation<byte[]> {
   public ReplaceOperation(Codec codecTransportFactory transportFactory,
            byte[] keybyte[] cacheNameAtomicInteger topologyId,
            Flag[] flagsbyte[] valuelong lifespanTimeUnit lifespanTimeUnitlong maxIdleTimeUnit maxIdleTimeUnit) {
      super(codectransportFactorykeycacheNametopologyIdflagsvaluelifespanlifespanTimeUnitmaxIdlemaxIdleTimeUnit);
   }
   @Override
   protected byte[] executeOperation(Transport transport) {
      byte[] result = null;
      short status = sendPutOperation(transport);
      result = returnPossiblePrevValue(transportstatus);
      return result;
   }
New to GrepCode? Check out our FAQ X