Class DeferredAction.DelegatingDeferredAction

  • All Implemented Interfaces:
    DeferredAction
    Enclosing interface:
    DeferredAction

    public abstract static class DeferredAction.DelegatingDeferredAction
    extends java.lang.Object
    implements DeferredAction
    Deferred action implementation that delegates to another deferred action.

    This class is intended as a base class for implementations that want to decorate method calls. To decorate it, subclass this class, and override the method, and ensure you call super.<overridden-method> in such a way that it is always called, even if the decoration fails.

    Since:
    5.0.11
    • Method Detail

      • processResponse

        public void processResponse​(Response response)
        Description copied from interface: DeferredAction
        Steps to process the deferred response.
        Specified by:
        processResponse in interface DeferredAction
        Parameters:
        response - Response object.
      • onException

        public void onException​(java.lang.Exception exception)
        Description copied from interface: DeferredAction
        Exception received when receiving or processing the response.

        The default implementation only logs the exception on debug level.

        Specified by:
        onException in interface DeferredAction
        Parameters:
        exception - exception received processing the response