Class FirstInvocationErrorConsumer
java.lang.Object
dev.getelements.elements.rt.routing.FirstInvocationErrorConsumer
- All Implemented Interfaces:
InvocationErrorConsumer
A type of
InvocationErrorConsumer
which accepts an instance of Throwable
and forwards it to the
delegate. Only the first error is relayed, and all others simply ignored as only one call needs to fail for
aggregation to fail.-
Constructor Details
-
FirstInvocationErrorConsumer
-
-
Method Details
-
accept
Description copied from interface:InvocationErrorConsumer
Accepts theThrowable
and processes it. If necessary it can re-throw it, or wrap it in another type and throw that.- Specified by:
accept
in interfaceInvocationErrorConsumer
- Parameters:
e
- theThrowable
instance
-