Class AbstractRemoveOperation<K,T>

All Implemented Interfaces:
Runnable, CompletionStage<T>, Future<T>, HotRodConstants, ChannelOperation
Direct Known Subclasses:
GetAndRemoveOperation, RemoveOperation

public abstract class AbstractRemoveOperation<K,T> extends AbstractKeyOperation<K,T>
Implement "remove" operation as described in Hot Rod protocol specification.
Since:
14.0
  • Constructor Details

    • AbstractRemoveOperation

      public AbstractRemoveOperation(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<T>
      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<T>