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 TypeMethodDescriptionboolean
Checks if replication is paused for current threadvoid
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
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 replicationlogContext
- - log context to be able to understand the reason cache replication is paused
-