Class SizeMultimapOperation

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

public class SizeMultimapOperation extends RetryOnFailureOperation<Long>
Implements "size" for multimap cache as defined by Hot Rod protocol specification.
Since:
9.2
Author:
Katia Aresti, karesti@redhat.com
  • Constructor Details

  • Method Details

    • executeOperation

      protected 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<Long>
      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<Long>
    • sendHeaderAndRead

      protected void sendHeaderAndRead(io.netty.channel.Channel channel)
      Overrides:
      sendHeaderAndRead in class HotRodOperation<Long>
    • sendHeader

      protected void sendHeader(io.netty.channel.Channel channel)
      Overrides:
      sendHeader in class HotRodOperation<Long>