com.atlassian.beehive
Class SimpleClusterLockService

java.lang.Object
  extended by com.atlassian.beehive.SimpleClusterLockService
All Implemented Interfaces:
ClusterLockService

public class SimpleClusterLockService
extends Object
implements ClusterLockService

Simple implementation of ClusterLockService that works for a single node application.

Certain cross product libraries (eg SAL and AO) will depend on having an implementation of ClusterLockService, and this one can used by applications that only run as a single node.

See Also:
DatabaseClusterLockService

Constructor Summary
SimpleClusterLockService()
           
 
Method Summary
 ClusterLock getLockForName(String lockName)
          Returns the cluster-wide lock for the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleClusterLockService

public SimpleClusterLockService()
Method Detail

getLockForName

public ClusterLock getLockForName(@Nonnull
                                  String lockName)
Description copied from interface: ClusterLockService
Returns the cluster-wide lock for the given name.

Specified by:
getLockForName in interface ClusterLockService
Parameters:
lockName - the globally unique lock identifier
Returns:
the cluster-wide lock for the given name.


Copyright © 2014 Atlassian. All Rights Reserved.