org.objectweb.transaction.api.lock
Interface ConflictLockCheckFeature
- All Superinterfaces:
- Feature
- public interface ConflictLockCheckFeature
- extends Feature
Feature providing a way of checking if two LockMode are conflicting.
- Version:
- 0.1
- Author:
- Romain Rouvoy
- ADL:
- name="CONFLICT_LOCK_CHECK_FEATURE" value="conflict-lock-check-feature"
Fields inherited from interface org.objectweb.transaction.api.Feature |
FEATURE |
CONFLICT_LOCK_CHECK_FEATURE
public static final java.lang.String CONFLICT_LOCK_CHECK_FEATURE
- ADL Identifier.
- See Also:
- Constant Field Values
isConflict
public boolean isConflict(LockMode acquired,
LockMode requested)
- Checkes if two lock modes are conflicting.
- Parameters:
acquired
- the lock mode acquired.requested
- the lock mode requested.
- Returns:
- true if the two modes are conflicting (false if non-conflicting).