Interface BackupResponse
-
- All Known Implementing Classes:
AggregateBackupResponse,JGroupsBackupResponse
public interface BackupResponseRepresents a response from a backup replication call.- Since:
- 5.2
- Author:
- Mircea Markus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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()longgetSendTimeMillis()Return the time in millis when this operation was initiated.booleanisEmpty()booleanisSync(String siteName)voidnotifyAsyncAck(XSiteAsyncAckListener listener)InvokesXSiteAsyncAckListenerfor each ack received from an asynchronous cross site request.voidnotifyFinish(LongConsumer timeElapsedConsumer)Registers a listener that is notified when the cross-site request is finished.voidwaitForBackupToFinish()
-
-
-
Method Detail
-
getCommunicationErrors
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. due to a lock acquisition timeout).
-
getSendTimeMillis
long getSendTimeMillis()
Return the time in millis when this operation was initiated.
-
isEmpty
boolean isEmpty()
-
notifyFinish
void notifyFinish(LongConsumer timeElapsedConsumer)
Registers a listener that is notified when the cross-site request is finished.The parameter is the time spent in the network in milliseconds.
- Parameters:
timeElapsedConsumer- TheConsumerto be invoke.
-
notifyAsyncAck
void notifyAsyncAck(XSiteAsyncAckListener listener)
InvokesXSiteAsyncAckListenerfor each ack received from an asynchronous cross site request. If the request times-out or failed to be sent, the listeners receives a non-nullThrowable.
-
isSync
boolean isSync(String siteName)
- Returns:
trueif the request for the remote site is synchronous.
-
-