public static interface AsynchronousInterceptor.ResultSupplier extends org.wildfly.common.function.ExceptionSupplier<Object,Exception>
discard()
method.| Modifier and Type | Field and Description |
|---|---|
static AsynchronousInterceptor.ResultSupplier |
CANCELLED
A result supplier that throws a cancellation exception.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
discard()
Discard the result, performing any cleanup actions necessary.
|
static AsynchronousInterceptor.ResultSupplier |
failed(Exception cause)
Create a failed result supplier that throws the given exception.
|
Object |
get()
Get the invocation result or throw its exception.
|
static AsynchronousInterceptor.ResultSupplier |
succeeded(Object result)
Create a result supplier that returns the given result.
|
static final AsynchronousInterceptor.ResultSupplier CANCELLED
default void discard()
static AsynchronousInterceptor.ResultSupplier failed(Exception cause)
cause - the exception to throwstatic AsynchronousInterceptor.ResultSupplier succeeded(Object result)
result - the result to returnCopyright © 2016 JBoss by Red Hat. All rights reserved.