类 FailoverClosureImpl

  • 所有已实现的接口:
    FailoverClosure, com.alipay.sofa.jraft.Closure

    public class FailoverClosureImpl
    extends java.lang.Object
    implements FailoverClosure
    Closure with internal retry mechanism.
    作者:
    liaochuntao
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private com.alibaba.nacos.consistency.entity.Response data  
      private java.util.concurrent.CompletableFuture<com.alibaba.nacos.consistency.entity.Response> future  
      private java.lang.Throwable throwable  
    • 构造器概要

      构造器 
      构造器 说明
      FailoverClosureImpl​(java.util.concurrent.CompletableFuture<com.alibaba.nacos.consistency.entity.Response> future)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void run​(com.alipay.sofa.jraft.Status status)  
      void setResponse​(com.alibaba.nacos.consistency.entity.Response data)
      Set the return interface if needed.
      void setThrowable​(java.lang.Throwable throwable)
      Catch exception.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • future

        private final java.util.concurrent.CompletableFuture<com.alibaba.nacos.consistency.entity.Response> future
      • data

        private volatile com.alibaba.nacos.consistency.entity.Response data
      • throwable

        private volatile java.lang.Throwable throwable
    • 构造器详细资料

      • FailoverClosureImpl

        public FailoverClosureImpl​(java.util.concurrent.CompletableFuture<com.alibaba.nacos.consistency.entity.Response> future)
    • 方法详细资料

      • setResponse

        public void setResponse​(com.alibaba.nacos.consistency.entity.Response data)
        从接口复制的说明: FailoverClosure
        Set the return interface if needed.
        指定者:
        setResponse 在接口中 FailoverClosure
        参数:
        data - Response data
      • setThrowable

        public void setThrowable​(java.lang.Throwable throwable)
        从接口复制的说明: FailoverClosure
        Catch exception.
        指定者:
        setThrowable 在接口中 FailoverClosure
        参数:
        throwable - Throwable
      • run

        public void run​(com.alipay.sofa.jraft.Status status)
        指定者:
        run 在接口中 com.alipay.sofa.jraft.Closure