com.atlassian.jira.cluster.lock
Class StartableDatabaseClusterLockService

java.lang.Object
  extended by com.atlassian.beehive.DatabaseClusterLockService
      extended by com.atlassian.jira.cluster.lock.StartableDatabaseClusterLockService
All Implemented Interfaces:
com.atlassian.beehive.ClusterLockService

public class StartableDatabaseClusterLockService
extends com.atlassian.beehive.DatabaseClusterLockService

A DatabaseClusterLockService that ensures the getLockForName() method gets called once and only once, prior to any locks being given out.

Since:
6.3

Constructor Summary
StartableDatabaseClusterLockService(com.atlassian.beehive.spi.ClusterLockDao clusterLockDao, com.atlassian.beehive.ClusterNodeHeartbeatService clusterNodeHeartbeatService)
           
 
Method Summary
 com.atlassian.beehive.ClusterLock getLockForName(String lockName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartableDatabaseClusterLockService

public StartableDatabaseClusterLockService(com.atlassian.beehive.spi.ClusterLockDao clusterLockDao,
                                           com.atlassian.beehive.ClusterNodeHeartbeatService clusterNodeHeartbeatService)
Method Detail

getLockForName

public com.atlassian.beehive.ClusterLock getLockForName(@Nonnull
                                                        String lockName)
Specified by:
getLockForName in interface com.atlassian.beehive.ClusterLockService
Overrides:
getLockForName in class com.atlassian.beehive.DatabaseClusterLockService


Copyright © 2002-2014 Atlassian. All Rights Reserved.