public class CancellationContext extends Object implements Closeable
| Constructor and Description |
|---|
CancellationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(CancellationListener cancellationListener) |
void |
addListener(CancellationListener cancellationListener,
Executor executor) |
void |
addListener(CancellationListener cancellationListener,
Executor executor,
RpcServiceContext context) |
void |
addListener(CancellationListener cancellationListener,
RpcServiceContext context) |
void |
addListenerInternal(ExecutableListener executableListener) |
boolean |
cancel(Throwable cause) |
void |
close() |
Throwable |
getCancellationCause() |
List<ExecutableListener> |
getListeners() |
boolean |
isCancelled() |
public void addListener(CancellationListener cancellationListener, Executor executor)
public void addListener(CancellationListener cancellationListener)
public void addListener(CancellationListener cancellationListener, RpcServiceContext context)
public void addListener(CancellationListener cancellationListener, Executor executor, RpcServiceContext context)
public void addListenerInternal(ExecutableListener executableListener)
public boolean cancel(Throwable cause)
public boolean isCancelled()
public List<ExecutableListener> getListeners()
public Throwable getCancellationCause()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.