Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Author(s):
Mircea.Markus@jboss.com
Since:
4.1
public class PutOperation extends AbstractKeyValueOperation<byte[]> {
   public PutOperation(Codec codecTransportFactory transportFactory,
                       byte[] keybyte[] cacheNameAtomicInteger topologyId,
                       Flag[] flagsbyte[] valuelong lifespanTimeUnit lifespanTimeUnitlong maxIdleTimeUnit maxIdleTimeUnit) {
      super(codectransportFactorykeycacheNametopologyIdflagsvaluelifespanlifespanTimeUnitmaxIdlemaxIdleTimeUnit);
   }
   @Override
   protected byte[] executeOperation(Transport transport) {
      short status = sendPutOperation(transport);
      if (status !=  && status != ) {
         throw new InvalidResponseException("Unexpected response status: " + Integer.toHexString(status));
      }
      return returnPossiblePrevValue(transportstatus);
   }
New to GrepCode? Check out our FAQ X