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)
ComponentEventCallbackEvent.isAborted() will return true.handleResult in interface ComponentEventCallbackresult - the result value returned from the event handler methodpublic boolean isAborted()
ComponentEventCallback.handleResult(Object) was invoked, false
otherwise.isAborted in interface TrackableComponentEventCallbackpublic void rethrow() throws IOException
TrackableComponentEventCallbackrethrow in interface TrackableComponentEventCallbackIOException5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.