Class NonClusteredReplicationPauserManager

java.lang.Object
com.atlassian.jira.cluster.cache.pauser.NonClusteredReplicationPauserManager
All Implemented Interfaces:
ReplicationPauserManager

@Internal public class NonClusteredReplicationPauserManager extends Object implements ReplicationPauserManager
ReplicationPauserManager service implementation for non-clustered mode.
See Also:
  • Constructor Details

    • NonClusteredReplicationPauserManager

      public NonClusteredReplicationPauserManager()
  • Method Details

    • isReplicationPaused

      public boolean isReplicationPaused()
      Description copied from interface: ReplicationPauserManager
      Checks if replication is paused for current thread
      Specified by:
      isReplicationPaused in interface ReplicationPauserManager
    • pauseReplicationFor

      public void pauseReplicationFor(Runnable codeWillNotTriggerCacheReplication, String logContext)
      Description copied from interface: ReplicationPauserManager
      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.
      Specified by:
      pauseReplicationFor in interface ReplicationPauserManager
      Parameters:
      codeWillNotTriggerCacheReplication - - code to be run without cache replication
      logContext - - log context to be able to understand the reason cache replication is paused