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"

Field Summary
static java.lang.String CONFLICT_LOCK_CHECK_FEATURE
          ADL Identifier.
 
Fields inherited from interface org.objectweb.transaction.api.Feature
FEATURE
 
Method Summary
 boolean isConflict(LockMode acquired, LockMode requested)
          Checkes if two lock modes are conflicting.
 

Field Detail

CONFLICT_LOCK_CHECK_FEATURE

public static final java.lang.String CONFLICT_LOCK_CHECK_FEATURE
ADL Identifier.

See Also:
Constant Field Values
Method Detail

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).