public class SingleUserLockingPolicy extends java.lang.Object implements LockingPolicy
Constructor and Description |
---|
SingleUserLockingPolicy()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canActivityModifyManagedResource(ActivityToken activityToken,
LockData lockData)
this method indicates whether the current member of the activity is allowed to
modify the resource.
|
boolean |
isManagedResourcedLocked(LockData managedResourceLockData,
LockData environmentLockData)
This method indicates whether the current member of the activity is allowed to
modify the resource.
|
public SingleUserLockingPolicy()
public boolean canActivityModifyManagedResource(ActivityToken activityToken, LockData lockData)
canActivityModifyManagedResource
in interface LockingPolicy
activityToken
- The current activity.lockData
- The lock data of the resource.public boolean isManagedResourcedLocked(LockData managedResourceLockData, LockData environmentLockData)
isManagedResourcedLocked
in interface LockingPolicy
managedResourceLockData
- The current lock data associated with the managed resource.environmentLockData
- The lock data representation of the environment associated with the
current operation.