@Internal public class ClusteredReplicationPauserManager extends Object implements ReplicationPauserManager
Constructor and Description |
---|
ClusteredReplicationPauserManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReplicationPaused()
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.
|
public boolean isReplicationPaused()
ReplicationPauserManager
isReplicationPaused
in interface ReplicationPauserManager
public void pauseReplicationFor(Runnable codeWillNotTriggerCacheReplication, String logContext)
ReplicationPauserManager
pauseReplicationFor
in interface ReplicationPauserManager
codeWillNotTriggerCacheReplication
- - code to be run without cache replicationlogContext
- - log context to be able to understand the reason cache replication is pausedCopyright © 2002-2019 Atlassian. All Rights Reserved.