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.
A listener to be notified when an asynchronous cross-site request is completed.
- Since:
- 10.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAckReceived
(long sendTimestampNanos, String siteName, Throwable throwable) Invoked when an ack for an asynchronous request is received.
-
Method Details
-
onAckReceived
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 nonnull
value.- 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
.
-