public class H2FeatureServiceLocker extends Object implements FeatureLockingInterface
| Constructor and Description |
|---|
H2FeatureServiceLocker() |
| Modifier and Type | Method and Description |
|---|---|
Class[] |
getSupportedFeatureServiceClasses()
Returns the supported feature services.
|
Object |
lock(AbstractFeatureService service,
boolean multiLockForSameUserAllowed)
locks the given feature service.
|
Object |
lock(Feature feature,
boolean multiLockForSameUserAllowed)
locks the given feature.
|
Object |
lock(List<Feature> features,
boolean multiLockForSameUserAllowed)
locks the given feature list.
|
void |
unlock(Object unlockObject)
Unlocks the feature, that is associated with the given unlock-object.
|
public Object lock(List<Feature> features, boolean multiLockForSameUserAllowed) throws LockAlreadyExistsException, Exception
FeatureLockingInterfacelock in interface FeatureLockingInterfacefeatures - the feature that should be lockedmultiLockForSameUserAllowed - true, iff it is allowed to lock an object that is already locked by this
userFeatureLockingInterface.unlock(Object)LockAlreadyExistsException - if the given feature is already lockedException - if the locking failed for some reasonpublic Object lock(Feature feature, boolean multiLockForSameUserAllowed) throws LockAlreadyExistsException, Exception
FeatureLockingInterfacelock in interface FeatureLockingInterfacefeature - the feature that should be lockedmultiLockForSameUserAllowed - true, iff it is allowed to lock an object that is already locked by this
userFeatureLockingInterface.unlock(Object)LockAlreadyExistsException - if the given feature is already lockedException - if the locking failed for some reasonpublic Object lock(AbstractFeatureService service, boolean multiLockForSameUserAllowed) throws LockAlreadyExistsException, Exception
FeatureLockingInterfacelock in interface FeatureLockingInterfaceservice - the service that should be lockedmultiLockForSameUserAllowed - true, iff it is allowed to lock an object that is already locked by this
userFeatureLockingInterface.unlock(Object)LockAlreadyExistsException - if at least one feature of the given service is already lockedException - if the locking failed for some reasonpublic void unlock(Object unlockObject) throws Exception
FeatureLockingInterfaceunlock in interface FeatureLockingInterfaceunlockObject - the unlock object from lock(Feature)Exception - if the unlock process failedpublic Class[] getSupportedFeatureServiceClasses()
FeatureLockingInterfacegetSupportedFeatureServiceClasses in interface FeatureLockingInterfaceCopyright © 2012–2026 cismet GmbH. All rights reserved.