public class JGroupsBackupResponse extends Object implements BackupResponse
| Constructor and Description |
|---|
JGroupsBackupResponse(Map<XSiteBackup,CompletableFuture<ValidResponse>> backupCalls,
TimeService timeService) |
| 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.
|
String |
toString() |
void |
waitForBackupToFinish() |
public JGroupsBackupResponse(Map<XSiteBackup,CompletableFuture<ValidResponse>> backupCalls, TimeService timeService)
public void waitForBackupToFinish()
throws Exception
waitForBackupToFinish in interface BackupResponseExceptionpublic Set<String> getCommunicationErrors()
BackupResponsegetCommunicationErrors in interface BackupResponsepublic long getSendTimeMillis()
BackupResponsegetSendTimeMillis in interface BackupResponsepublic boolean isEmpty()
isEmpty in interface BackupResponsepublic void notifyFinish(LongConsumer timeElapsedConsumer)
BackupResponseThe parameter is the time spent in the network in milliseconds.
notifyFinish in interface BackupResponsetimeElapsedConsumer - The Consumer to be invoke.public Map<String,Throwable> getFailedBackups()
getFailedBackups in interface BackupResponsepublic void notifyAsyncAck(XSiteAsyncAckListener listener)
BackupResponseXSiteAsyncAckListener 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.notifyAsyncAck in interface BackupResponsepublic boolean isSync(String siteName)
isSync in interface BackupResponsetrue if the request for the remote site is synchronous.Copyright © 2022 JBoss by Red Hat. All rights reserved.