类 CancellationContext
- java.lang.Object
-
- org.apache.dubbo.rpc.CancellationContext
-
- 所有已实现的接口:
Closeable,AutoCloseable
public class CancellationContext extends Object implements Closeable
-
-
构造器概要
构造器 构造器 说明 CancellationContext()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddListener(CancellationListener cancellationListener)voidaddListener(CancellationListener cancellationListener, Executor executor)voidaddListener(CancellationListener cancellationListener, Executor executor, RpcServiceContext context)voidaddListener(CancellationListener cancellationListener, RpcServiceContext context)voidaddListenerInternal(ExecutableListener executableListener)booleancancel(Throwable cause)voidclose()ThrowablegetCancellationCause()List<ExecutableListener>getListeners()booleanisCancelled()
-
-
-
方法详细资料
-
addListener
public void addListener(CancellationListener cancellationListener, Executor executor)
-
addListener
public void addListener(CancellationListener cancellationListener)
-
addListener
public void addListener(CancellationListener cancellationListener, RpcServiceContext context)
-
addListener
public void addListener(CancellationListener cancellationListener, Executor executor, RpcServiceContext context)
-
addListenerInternal
public void addListenerInternal(ExecutableListener executableListener)
-
cancel
public boolean cancel(Throwable cause)
-
isCancelled
public boolean isCancelled()
-
getListeners
public List<ExecutableListener> getListeners()
-
getCancellationCause
public Throwable getCancellationCause()
-
close
public void close() throws IOException- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 抛出:
IOException
-
-