public class ComponentResultProcessorWrapper extends Object implements TrackableComponentEventCallback
ComponentEventResultProcessor
that encapsulates capturing the exception.Constructor and Description |
---|
ComponentResultProcessorWrapper(ComponentEventResultProcessor processor) |
Modifier and Type | Method and Description |
---|---|
boolean |
handleResult(Object result)
Invoked to handle a non-null event handler method result.
|
boolean |
isAborted()
Returns true if
ComponentEventCallback.handleResult(Object) was invoked, false
otherwise. |
void |
rethrow()
If processing a return value threw an IOException, invoking this method will rethrow it.
|
public ComponentResultProcessorWrapper(ComponentEventResultProcessor processor)
public boolean handleResult(Object result)
ComponentEventCallback
Event.isAborted()
will return true.handleResult
in interface ComponentEventCallback
result
- the result value returned from the event handler methodpublic boolean isAborted()
ComponentEventCallback.handleResult(Object)
was invoked, false
otherwise.isAborted
in interface TrackableComponentEventCallback
public void rethrow() throws IOException
TrackableComponentEventCallback
rethrow
in interface TrackableComponentEventCallback
IOException
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.