Interface ReplicationPauserManager

All Known Implementing Classes:
ClusteredReplicationPauserManager, NonClusteredReplicationPauserManager

public interface ReplicationPauserManager
Allows to run "some code" without triggering replication in clustered Jira
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if replication is paused for current thread
    void
    pauseReplicationFor(Runnable codeWillNotTriggerCacheReplication, String logContext)
    Disables sending cache replication events for the time of running codeWillNotTriggerCacheReplication.
  • Method Details

    • isReplicationPaused

      boolean isReplicationPaused()
      Checks if replication is paused for current thread
    • pauseReplicationFor

      void pauseReplicationFor(Runnable codeWillNotTriggerCacheReplication, String logContext)
      Disables sending cache replication events for the time of running codeWillNotTriggerCacheReplication. Note that codeWillNotTriggerCacheReplication should be run in the calling thread, i.e. only the code running in the calling thread will have the cache replication paused.
      Parameters:
      codeWillNotTriggerCacheReplication - - code to be run without cache replication
      logContext - - log context to be able to understand the reason cache replication is paused