public interface BackupResponse
Modifier and Type | Method and Description |
---|---|
Set<String> |
getCommunicationErrors()
Returns the list of sites where the backups failed due to a bridge communication error (as opposed to an
error caused by Infinispan, e.g.
|
Map<String,Throwable> |
getFailedBackups() |
long |
getSendTimeMillis()
Return the time in millis when this operation was initiated.
|
boolean |
isEmpty() |
boolean |
isSync(String siteName) |
void |
notifyAsyncAck(XSiteAsyncAckListener listener)
Invokes
XSiteAsyncAckListener for each ack received from an asynchronous cross site request. |
void |
notifyFinish(LongConsumer timeElapsedConsumer)
Registers a listener that is notified when the cross-site request is finished.
|
void |
waitForBackupToFinish() |
Set<String> getCommunicationErrors()
long getSendTimeMillis()
boolean isEmpty()
void notifyFinish(LongConsumer timeElapsedConsumer)
The parameter is the time spent in the network in milliseconds.
timeElapsedConsumer
- The Consumer
to be invoke.void notifyAsyncAck(XSiteAsyncAckListener listener)
XSiteAsyncAckListener
for each ack received from an asynchronous cross site request.
If the request times-out or failed to be sent, the listeners receives a non-null Throwable
.boolean isSync(String siteName)
true
if the request for the remote site is synchronous.Copyright © 2021 JBoss by Red Hat. All rights reserved.