@FunctionalInterface public interface XSiteAsyncAckListener
Modifier and Type | Method and Description |
---|---|
void |
onAckReceived(long sendTimestampNanos,
String siteName,
Throwable throwable)
Invoked when an ack for an asynchronous request is received.
|
void onAckReceived(long sendTimestampNanos, String siteName, Throwable throwable)
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
.Copyright © 2021 JBoss by Red Hat. All rights reserved.