public static class EJBReceiverInvocationContext.ResultProducer.Failed extends Object implements EJBReceiverInvocationContext.ResultProducer
EJBReceiverInvocationContext.ResultProducer.Failed, EJBReceiverInvocationContext.ResultProducer.ImmediateNULL| Constructor and Description |
|---|
Failed(Exception cause)
Construct a new instance.
|
Failed(Supplier<Exception> cause)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
discardResult()
Discard the result, indicating that it will not be used.
|
Supplier<Exception> |
getExceptionSupplier()
Get the exception supplier.
|
Object |
getResult()
Get the result.
|
public Failed(Exception cause)
cause - the failure causepublic Object getResult() throws Exception
EJBReceiverInvocationContext.ResultProducergetResult in interface EJBReceiverInvocationContext.ResultProducerException - if the result could not be acquired or the operation failedpublic Supplier<Exception> getExceptionSupplier()
null)public void discardResult()
EJBReceiverInvocationContext.ResultProducerdiscardResult in interface EJBReceiverInvocationContext.ResultProducerCopyright © 2017 JBoss by Red Hat. All rights reserved.