public class OAObjectLockDelegate extends Object
Note: setting a lock does not restrict access to an Object, it only serves as a flag. It is currently the applications responsiblity to enforce rules based on a lock being set.
Note: this also works with OASync (Clients/Server) to create distributed locks.
For more information about this package, see documentation.
Constructor and Description |
---|
OAObjectLockDelegate() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isLocked(OAObject object)
Used to check to see if an object is locked.
|
static void |
lock(OAObject object)
Used to set a lock on an Object.
|
static void |
unlock(OAObject object)
Removes lock from table.
|
public static void lock(OAObject object)
public static void unlock(OAObject object)
object
- to releasepublic static boolean isLocked(OAObject object)
Copyright © 1999–2019 ViaOA. All rights reserved.