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 Summary
Constructors -
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.
-
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 interfaceReplicationPauserManager
-
pauseReplicationFor
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 interfaceReplicationPauserManager
- Parameters:
codeWillNotTriggerCacheReplication
- - code to be run without cache replicationlogContext
- - log context to be able to understand the reason cache replication is paused
-