T
- the result typeA
- the attachment typepublic interface ActiveOperation<T,A>
ManagementRequestContext.getAttachment()
from the request handler.
An operation is seen as active until one of the completion
methods on the ActiveOperation.ResultHandler
are called.Modifier and Type | Interface and Description |
---|---|
static interface |
ActiveOperation.CompletedCallback<T>
A callback indicating when an operation is complete.
|
static interface |
ActiveOperation.ResultHandler<T>
Handler for the result or to mark the operation as completed/failed.
|
Modifier and Type | Method and Description |
---|---|
void |
addCancellable(org.xnio.Cancellable cancellable)
Add a cancellation handler.
|
A |
getAttachment()
Get the attachment.
|
Integer |
getOperationId()
Get the batch id.
|
org.jboss.threads.AsyncFuture<T> |
getResult()
Get the result.
|
ActiveOperation.ResultHandler<T> |
getResultHandler()
Get the completion handler for this request.
|
Integer getOperationId()
ActiveOperation.ResultHandler<T> getResultHandler()
A getAttachment()
org.jboss.threads.AsyncFuture<T> getResult()
void addCancellable(org.xnio.Cancellable cancellable)
cancellable
- the cancel handlerCopyright © 2023 JBoss by Red Hat. All rights reserved.