Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.client.hotrod.impl.operations;
 
 
Corresponds to clear operation as defined by Hot Rod protocol specification.

Author(s):
Mircea.Markus@jboss.com
Since:
4.1
public class ClearOperation extends RetryOnFailureOperation<Void> {
   public ClearOperation(Codec codecTransportFactory transportFactory,
            byte[] cacheNameAtomicInteger topologyIdFlag[] flags) {
      super(codectransportFactorycacheNametopologyIdflags);
   }
   @Override
   protected Transport getTransport(int retryCountSet<SocketAddressfailedServers) {
      return .getTransport(failedServers);
   }
   @Override
   protected Void executeOperation(Transport transport) {
      HeaderParams params = writeHeader(transport);
      transport.flush();
      readHeaderAndValidate(transportparams);
      return null;
   }
New to GrepCode? Check out our FAQ X