Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.client.hotrod.impl.operations;
 
 
public class SizeOperation extends RetryOnFailureOperation<Integer> {
   protected SizeOperation(Codec codecTransportFactory transportFactory,
         byte[] cacheNameAtomicInteger topologyIdFlag[] flags) {
      super(codectransportFactorycacheNametopologyIdflags);
   }
   @Override
   protected Transport getTransport(int retryCountSet<SocketAddressfailedServers) {
      return .getTransport(failedServers);
   }
   @Override
   protected Integer executeOperation(Transport transport) {
      HeaderParams params = writeHeader(transport);
      transport.flush();
      readHeaderAndValidate(transportparams);
      return transport.readVInt();
   }
New to GrepCode? Check out our FAQ X