Class DatabaseClusterLockService

java.lang.Object
com.atlassian.beehive.db.DatabaseClusterLockService
All Implemented Interfaces:
ClusterLockService, ManagedClusterLockService

public class DatabaseClusterLockService extends Object implements ManagedClusterLockService
This is the database backed implementation of ClusterLockService that can be used by clustered applications.

This implementation relies on the host application providing SPI implementations for Data Access objects.

Warning: Any alterations of tables used by DAO SPI implementations, if performed at runtime, need to be followed by calling resetDatabaseState(). Failing to do so immediately after the changes, may result in unexpected locks behavior. Furthermore, the existing unreleased locks, that were held since before the db alteration, no logner guarantee clusterwide exclusiveness until they are successfully reacquired.