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.
@FunctionalInterface public interface XSiteAsyncAckListenerA listener to be notified when an asynchronous cross-site request is completed.- Since:
- 10.0
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonAckReceived(long sendTimestampNanos, java.lang.String siteName, java.lang.Throwable throwable)Invoked when an ack for an asynchronous request is received.
-
-
-
Method Detail
-
onAckReceived
void onAckReceived(long sendTimestampNanos, java.lang.String siteName, java.lang.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
throwableis set to a nonnullvalue.- Parameters:
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) ornull.
-
-