public class LockService extends AbstractResinSubSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Constructor and Description |
---|
LockService(AbstractLockManager lockManager) |
Modifier and Type | Method and Description |
---|---|
static LockService |
createAndAddService(AbstractLockManager lockManager) |
static LockService |
getCurrent() |
LockManager |
getManager() |
java.util.concurrent.locks.Lock |
getOrCreateLock(java.lang.String name)
Creates a new lock with the given name;
|
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
destroy, getStartPriority, getStopPriority, isActive, preCreate, toString
public LockService(AbstractLockManager lockManager)
public static LockService createAndAddService(AbstractLockManager lockManager)
public static LockService getCurrent()
public LockManager getManager()
public java.util.concurrent.locks.Lock getOrCreateLock(java.lang.String name)
public void start()
ResinSubSystem
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem
public void stop()
ResinSubSystem
stop
in interface ResinSubSystem
stop
in class AbstractResinSubSystem