com.atlassian.beehive.hazelcast
Class HazelcastClusterLockService

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

public class HazelcastClusterLockService
extends Object
implements ClusterLockService

Hazelcast implementation of ClusterLockService


Constructor Summary
HazelcastClusterLockService(com.hazelcast.core.HazelcastInstance hazelcast)
           
 
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

HazelcastClusterLockService

public HazelcastClusterLockService(com.hazelcast.core.HazelcastInstance hazelcast)
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.