Class RetryOnFailureOperation<T>

    • Field Detail

      • log

        protected static final Log log
    • Constructor Detail

      • RetryOnFailureOperation

        protected RetryOnFailureOperation​(OperationContext operationContext,
                                          short requestCode,
                                          short responseCode,
                                          org.infinispan.api.common.CacheOptions options,
                                          DataFormat dataFormat)
    • Method Detail

      • invoke

        public void invoke​(io.netty.channel.Channel channel)
        Description copied from interface: ChannelOperation
        Invoked on an active channel ready to be written
        Specified by:
        invoke in interface ChannelOperation
      • reset

        protected void reset()
      • logAndRetryOrFail

        protected void logAndRetryOrFail​(Throwable e)
      • fetchChannelAndInvoke

        protected void fetchChannelAndInvoke​(int retryCount,
                                             Set<SocketAddress> failedServers)
      • executeOperation

        protected abstract void executeOperation​(io.netty.channel.Channel channel)
        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.
        Parameters:
        channel - the channel to use for I/O