类 FailoverClosureImpl
java.lang.Object
com.alibaba.nacos.core.distributed.raft.utils.FailoverClosureImpl
- 所有已实现的接口:
FailoverClosure,com.alipay.sofa.jraft.Closure
Closure with internal retry mechanism.
- 作者:
- liaochuntao
-
构造器概要
构造器构造器说明FailoverClosureImpl(CompletableFuture<com.alibaba.nacos.consistency.entity.Response> future) -
方法概要
修饰符和类型方法说明voidrun(com.alipay.sofa.jraft.Status status)voidsetResponse(com.alibaba.nacos.consistency.entity.Response data)Set the return interface if needed.voidsetThrowable(Throwable throwable)Catch exception.
-
构造器详细资料
-
FailoverClosureImpl
public FailoverClosureImpl(CompletableFuture<com.alibaba.nacos.consistency.entity.Response> future)
-
-
方法详细资料
-
setResponse
public void setResponse(com.alibaba.nacos.consistency.entity.Response data)从接口复制的说明:FailoverClosureSet the return interface if needed.- 指定者:
setResponse在接口中FailoverClosure- 参数:
data-Responsedata
-
setThrowable
从接口复制的说明:FailoverClosureCatch exception.- 指定者:
setThrowable在接口中FailoverClosure- 参数:
throwable-Throwable
-
run
public void run(com.alipay.sofa.jraft.Status status)- 指定者:
run在接口中com.alipay.sofa.jraft.Closure
-