Package org.jboss.ejb.client
Class EJBReceiverInvocationContext.ResultProducer.Failed
- java.lang.Object
-
- org.jboss.ejb.client.EJBReceiverInvocationContext.ResultProducer.Failed
-
- All Implemented Interfaces:
EJBReceiverInvocationContext.ResultProducer
- Enclosing interface:
- EJBReceiverInvocationContext.ResultProducer
public static class EJBReceiverInvocationContext.ResultProducer.Failed extends Object implements EJBReceiverInvocationContext.ResultProducer
A result producer for failure cases.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.ejb.client.EJBReceiverInvocationContext.ResultProducer
EJBReceiverInvocationContext.ResultProducer.Failed, EJBReceiverInvocationContext.ResultProducer.Immediate
-
-
Field Summary
-
Fields inherited from interface org.jboss.ejb.client.EJBReceiverInvocationContext.ResultProducer
NULL
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddiscardResult()Discard the result, indicating that it will not be used.Supplier<Exception>getExceptionSupplier()Get the exception supplier.ObjectgetResult()Get the result.
-
-
-
Method Detail
-
getResult
public Object getResult() throws Exception
Description copied from interface:EJBReceiverInvocationContext.ResultProducerGet the result.- Specified by:
getResultin interfaceEJBReceiverInvocationContext.ResultProducer- Returns:
- the result
- Throws:
Exception- if the result could not be acquired or the operation failed
-
getExceptionSupplier
public Supplier<Exception> getExceptionSupplier()
Get the exception supplier.- Returns:
- the exception supplier (not
null)
-
discardResult
public void discardResult()
Description copied from interface:EJBReceiverInvocationContext.ResultProducerDiscard the result, indicating that it will not be used.- Specified by:
discardResultin interfaceEJBReceiverInvocationContext.ResultProducer
-
-