Class NoOpBackupSender

  • All Implemented Interfaces:
    BackupSender

    public class NoOpBackupSender
    extends java.lang.Object
    implements BackupSender
    A no-op implementation of BackupSender.

    This class is used when cross-site replication is disabled.

    Since:
    10.0
    Author:
    Pedro Ruivo
    • Method Detail

      • backupPrepare

        public InvocationStage backupPrepare​(org.infinispan.commands.tx.PrepareCommand command,
                                             org.infinispan.transaction.impl.AbstractCacheTransaction cacheTransaction,
                                             javax.transaction.Transaction transaction)
        Description copied from interface: BackupSender
        Prepares a transaction on the remote site.
        Specified by:
        backupPrepare in interface BackupSender
      • backupWrite

        public InvocationStage backupWrite​(org.infinispan.commands.write.WriteCommand command,
                                           org.infinispan.commands.VisitableCommand originalCommand)
        Specified by:
        backupWrite in interface BackupSender
      • backupCommit

        public InvocationStage backupCommit​(org.infinispan.commands.tx.CommitCommand command,
                                            javax.transaction.Transaction transaction)
        Specified by:
        backupCommit in interface BackupSender
      • backupRollback

        public InvocationStage backupRollback​(org.infinispan.commands.tx.RollbackCommand command,
                                              javax.transaction.Transaction transaction)
        Specified by:
        backupRollback in interface BackupSender
      • status

        public java.util.Map<java.lang.String,​java.lang.Boolean> status()
        Description copied from interface: BackupSender
        Returns a Map having as entries the site names and as value Boolean.TRUE if the site is online and Boolean.FALSE if it is offline.
        Specified by:
        status in interface BackupSender
      • toString

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