Class AggregateBackupResponse
java.lang.Object
org.infinispan.remoting.transport.AggregateBackupResponse
- All Implemented Interfaces:
- BackupResponse
- Since:
- 5.2
- Author:
- Mircea Markus
- 
Constructor SummaryConstructorsConstructorDescriptionAggregateBackupResponse(BackupResponse onePcResponse, BackupResponse twoPcResponse) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns 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).longReturn the time in millis when this operation was initiated.inthashCode()booleanisEmpty()booleanvoidnotifyAsyncAck(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.toString()void
- 
Constructor Details- 
AggregateBackupResponse
 
- 
- 
Method Details- 
waitForBackupToFinish- Specified by:
- waitForBackupToFinishin interface- BackupResponse
- Throws:
- Exception
 
- 
getFailedBackups- Specified by:
- getFailedBackupsin interface- BackupResponse
 
- 
getCommunicationErrorsDescription copied from interface:BackupResponseReturns 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).- Specified by:
- getCommunicationErrorsin interface- BackupResponse
 
- 
getSendTimeMillispublic long getSendTimeMillis()Description copied from interface:BackupResponseReturn the time in millis when this operation was initiated.- Specified by:
- getSendTimeMillisin interface- BackupResponse
 
- 
toString
- 
equals
- 
hashCode
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- BackupResponse
 
- 
notifyFinishDescription copied from interface:BackupResponseRegisters a listener that is notified when the cross-site request is finished.The parameter is the time spent in the network in milliseconds. - Specified by:
- notifyFinishin interface- BackupResponse
- Parameters:
- timeElapsedConsumer- The- Consumerto be invoke.
 
- 
notifyAsyncAckDescription copied from interface:BackupResponseInvokesXSiteAsyncAckListenerfor 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.- Specified by:
- notifyAsyncAckin interface- BackupResponse
 
- 
isSync- Specified by:
- isSyncin interface- BackupResponse
- Returns:
- trueif the request for the remote site is synchronous.
 
 
-