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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDiscard the result, indicating that it will not be used.Get the exception supplier.Get the result.
-
Constructor Details
-
Failed
Construct a new instance.- Parameters:
cause- the failure cause
-
Failed
Construct a new instance.- Parameters:
cause- a supplier which yields the failure cause
-
-
Method Details
-
getResult
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
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
-