Package org.apache.dubbo.rpc
Class CancellationContext
java.lang.Object
org.apache.dubbo.rpc.CancellationContext
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(CancellationListener cancellationListener) voidaddListener(CancellationListener cancellationListener, Executor executor) voidaddListener(CancellationListener cancellationListener, Executor executor, RpcServiceContext context) voidaddListener(CancellationListener cancellationListener, RpcServiceContext context) voidaddListenerInternal(ExecutableListener executableListener) booleanvoidclose()boolean
-
Constructor Details
-
CancellationContext
public CancellationContext()
-
-
Method Details
-
addListener
-
addListener
-
addListener
-
addListener
public void addListener(CancellationListener cancellationListener, Executor executor, RpcServiceContext context) -
addListenerInternal
-
cancel
-
isCancelled
public boolean isCancelled() -
getListeners
-
getCancellationCause
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-