Class JGroupsBackupResponse

  • All Implemented Interfaces:
    BackupResponse

    public class JGroupsBackupResponse
    extends java.lang.Object
    implements BackupResponse
    Since:
    5.2
    Author:
    Mircea Markus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.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.
      java.util.Map<java.lang.String,​java.lang.Throwable> getFailedBackups()  
      long getSendTimeMillis()
      Return the time in millis when this operation was initiated.
      boolean isEmpty()  
      void notifyFinish​(java.util.function.LongConsumer timeElapsedConsumer)
      Registers a listener that is notified when the cross-site request is finished.
      java.lang.String toString()  
      void waitForBackupToFinish()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • waitForBackupToFinish

        public void waitForBackupToFinish()
                                   throws java.lang.Exception
        Specified by:
        waitForBackupToFinish in interface BackupResponse
        Throws:
        java.lang.Exception
      • getCommunicationErrors

        public java.util.Set<java.lang.String> getCommunicationErrors()
        Description copied from interface: BackupResponse
        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).
        Specified by:
        getCommunicationErrors in interface BackupResponse
      • getSendTimeMillis

        public long getSendTimeMillis()
        Description copied from interface: BackupResponse
        Return the time in millis when this operation was initiated.
        Specified by:
        getSendTimeMillis in interface BackupResponse
      • notifyFinish

        public void notifyFinish​(java.util.function.LongConsumer timeElapsedConsumer)
        Description copied from interface: BackupResponse
        Registers 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:
        notifyFinish in interface BackupResponse
        Parameters:
        timeElapsedConsumer - The Consumer to be invoke.
      • getFailedBackups

        public java.util.Map<java.lang.String,​java.lang.Throwable> getFailedBackups()
        Specified by:
        getFailedBackups in interface BackupResponse
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object