Package cn.sliew.milky.common.filter
Class DelegatingActionListener<Response>
- java.lang.Object
-
- cn.sliew.milky.common.filter.DelegatingActionListener<Response>
-
- All Implemented Interfaces:
ActionListener<Response>
public class DelegatingActionListener<Response> extends Object implements ActionListener<Response>
-
-
Constructor Summary
Constructors Constructor Description DelegatingActionListener(ActionListener<Response> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonFailure(Throwable throwable)A failure caused by an exception at some phase of the task.voidonResponse(Response response)Handle action response.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cn.sliew.milky.common.filter.ActionListener
toBiConsumer, toFuture
-
-
-
-
Constructor Detail
-
DelegatingActionListener
public DelegatingActionListener(ActionListener<Response> delegate)
-
-
Method Detail
-
onResponse
public void onResponse(Response response)
Description copied from interface:ActionListenerHandle action response. This response may constitute a failure or a success but it is up to the listener to make that decision.- Specified by:
onResponsein interfaceActionListener<Response>
-
onFailure
public void onFailure(Throwable throwable)
Description copied from interface:ActionListenerA failure caused by an exception at some phase of the task.- Specified by:
onFailurein interfaceActionListener<Response>
-
-