public static class EJBReceiverInvocationContext.ResultProducer.Failed extends Object implements EJBReceiverInvocationContext.ResultProducer
EJBReceiverInvocationContext.ResultProducer.Failed, EJBReceiverInvocationContext.ResultProducer.Immediate
NULL
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.ResultProducer
getResult
in interface EJBReceiverInvocationContext.ResultProducer
Exception
- if the result could not be acquired or the operation failedpublic Supplier<Exception> getExceptionSupplier()
null
)public void discardResult()
EJBReceiverInvocationContext.ResultProducer
discardResult
in interface EJBReceiverInvocationContext.ResultProducer
Copyright © 2019 JBoss by Red Hat. All rights reserved.