public interface AsynchronousInterceptor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AsynchronousInterceptor.CancellationHandle
A handle for cancellation of an asynchronous invocation request.
|
static interface |
AsynchronousInterceptor.ResultHandler
A handler for the result of a method invocation.
|
static interface |
AsynchronousInterceptor.ResultSupplier
The invocation result supplier, which returns the invocation result or propagates its exception.
|
| Modifier and Type | Field and Description |
|---|---|
static AsynchronousInterceptor[] |
EMPTY_ARRAY
An empty asynchronous interceptor array.
|
| Modifier and Type | Method and Description |
|---|---|
AsynchronousInterceptor.CancellationHandle |
processInvocation(AsynchronousInterceptorContext context,
AsynchronousInterceptor.ResultHandler resultHandler)
Process an invocation.
|
static final AsynchronousInterceptor[] EMPTY_ARRAY
AsynchronousInterceptor.CancellationHandle processInvocation(AsynchronousInterceptorContext context, AsynchronousInterceptor.ResultHandler resultHandler)
AsynchronousInterceptor.ResultHandler, otherwise the invocation may hang.
This method must return a handle which can be used to request cancellation.
context - the interceptor context (not null)resultHandler - the handler for the invocation result (not null)null)Copyright © 2016 JBoss by Red Hat. All rights reserved.