Class GetWithMetadataOperation<K,​V>

    • Constructor Detail

      • GetWithMetadataOperation

        public GetWithMetadataOperation​(OperationContext operationContext,
                                        K key,
                                        byte[] keyBytes,
                                        org.infinispan.api.common.CacheOptions options,
                                        DataFormat dataFormat,
                                        SocketAddress preferredServer)
    • Method Detail

      • 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<org.infinispan.api.common.CacheEntry<K,​V>>
        Parameters:
        channel - the channel to use for I/O
      • wasRetried

        public Boolean wasRetried()
        Description copied from interface: RetryAwareCompletionStage
        Returns whether this operation had to be retried on another server than the first one picked.
        Specified by:
        wasRetried in interface RetryAwareCompletionStage<K>
        Returns:
        true if the operation had to be retried on another server, false if it completed without retry or null if the operation is not yet complete.