Interface XSiteAsyncAckListener

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface XSiteAsyncAckListener
    A listener to be notified when an asynchronous cross-site request is completed.
    Pedro Ruivo
    • Method Detail

      • onAckReceived

        void onAckReceived​(long sendTimestampNanos,
                           String siteName,
                           Throwable throwable)
        Invoked when an ack for an asynchronous request is received.

        If an exception is received (could be a network exception or an exception from the remote site), the throwable is set to a non null value.

        sendTimestampNanos - The timestamp when the request was sent to the remote site (nanoseconds).
        siteName - The remote site name.
        throwable - The exception received (including timeouts and site unreachable) or null.