Class GetOperation<K,V>

All Implemented Interfaces:
Runnable, CompletionStage<V>, Future<V>, HotRodConstants, ChannelOperation

public class GetOperation<K,V> extends AbstractKeyOperation<K,V>
Implements "get" operation as described by Hot Rod protocol specification.
Since:
14.0
  • Constructor Details

    • GetOperation

      public GetOperation(OperationContext operationContext, K key, byte[] keyBytes, org.infinispan.api.common.CacheOptions options, DataFormat dataFormat)
  • Method Details

    • executeOperation

      public void executeOperation(io.netty.channel.Channel channel)
      Description copied from class: RetryOnFailureOperation
      Perform the operation-specific request/response I/O on the specified channel. If an error occurs during I/O, this class will detect it and retry the operation with a different channel by invoking the executeOperation method again.
      Specified by:
      executeOperation in class RetryOnFailureOperation<V>
      Parameters:
      channel - the channel to use for I/O
    • acceptResponse

      public void acceptResponse(io.netty.buffer.ByteBuf buf, short status, HeaderDecoder decoder)
      Specified by:
      acceptResponse in class HotRodOperation<V>