public class EmptyFlowListener extends java.lang.Object implements IConversationFlowListener
All methods in this class are no-op.
IConversationFlowListener.Builder
Constructor and Description |
---|
EmptyFlowListener() |
Modifier and Type | Method and Description |
---|---|
void |
onCancellationByRequestFilter(ICancellationEvent event)
Invoked when the request filter chain cancelled processing.
|
void |
onCancellationByRequestListener(ICancellationEvent event)
Invoked when the request listener cancelled processing.
|
void |
onCancellationByResponseFilter(ICancellationEvent event)
Invoked when the response filter chain cancelled processing.
|
void |
onCommunicationError(java.io.IOException e)
Invoked in case a communication error is encountered.
|
void |
onCompletion()
Guaranteed to be invoked at the end of the flow processing regardless of the outcome of the execution.
|
void |
onExternalCancellation(ICancellationEvent event)
Invoked when the flow was cancelled externally, using the
IHttpConversation#Øcancel() . |
void |
onMaximumRestartsReached(ICancellationEvent event)
Invoked when the response flow signaled restart but the maximum number of restarts have already been reached.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepareFor
public void onCancellationByRequestFilter(ICancellationEvent event)
ICancellationByRequestFilterListener
onCancellationByRequestFilter
in interface ICancellationByRequestFilterListener
event
- the event object, must be non-nullpublic void onCancellationByRequestListener(ICancellationEvent event)
ICancellationByRequestListenerListener
onCancellationByRequestListener
in interface ICancellationByRequestListenerListener
event
- the event object, must be non-nullpublic void onCancellationByResponseFilter(ICancellationEvent event)
ICancellationByResponseFilterListener
onCancellationByResponseFilter
in interface ICancellationByResponseFilterListener
event
- the event object, must be non-nullpublic void onExternalCancellation(ICancellationEvent event)
IExternalCancellationListener
IHttpConversation#Øcancel()
. The result object in the event is always null.onExternalCancellation
in interface IExternalCancellationListener
event
- the event object, must be non-nullpublic void onMaximumRestartsReached(ICancellationEvent event)
IMaximumRestartsReachedListener
onMaximumRestartsReached
in interface IMaximumRestartsReachedListener
event
- the event object, must be non-nullpublic void onCommunicationError(java.io.IOException e)
ICommunicationErrorListener
Note that conversation flow processing make sure that the exception is logged properly prior to invoking this method.
onCommunicationError
in interface ICommunicationErrorListener
e
- the exception, must be non-nullpublic void onCompletion()
IConversationCompletionListener
onCompletion
in interface IConversationCompletionListener