public class LockState extends Object
LockState is an enumeration type, describing all possible
states of a lock object (i.e. instances of ILock). The lock object's
state is determined by the content of the lock registry:
ACTIVE lock objects reflect locks stored in the central
registry.BROKEN lock objects, a lock is kept in the registry,
but it belongs to another user or session.INACTIVE lock objects, no lock is stored in the
registry.| Modifier and Type | Field and Description |
|---|---|
static LockState |
ACTIVE
State for lock objects that represent a lock stored in the central lock
registry.
|
static int |
ACTIVE_INT_VALUE
Integer equivalent of lock state
ACTIVE. |
static LockState |
BROKEN
State of lock objects where the respective resource is locked, but the
current owner (combination of user and session) of the lock is not the
same as what is returned by methods
ILock.getUserId()and
ILock.getSessionId(). |
static int |
BROKEN_INT_VALUE
Integer equivalent of lock state
BROKEN. |
static LockState |
INACTIVE
State of lock objects where no entry can be found in the lock registry
for the respective resource.
|
static int |
INACTIVE_INT_VALUE
Integer equivalent of lock state
INACTIVE. |
| Constructor and Description |
|---|
LockState(int state)
For internal use only: Create a LockState object for a given int
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(LockState lockState)
Compare this lock state with another one.
|
boolean |
equals(Object lockState)
Compare this object with this one.
|
int |
getAsInt()
Return an integer value for this lock state that can be used in
switch -statements. |
int |
hashCode() |
public static final int ACTIVE_INT_VALUE
ACTIVE.public static final LockState ACTIVE
ILock.getUserId().public static final int BROKEN_INT_VALUE
BROKEN.public static final LockState BROKEN
ILock.getUserId()and
ILock.getSessionId(). This is the consequence of a
ILock.take(String,String, String)-operation performed on the
underlying lock.public static final int INACTIVE_INT_VALUE
INACTIVE.public static final LockState INACTIVE
public LockState(int state)
state - a given intpublic boolean equals(LockState lockState)
java.lang.Object.equals() for details.lockState - lock stateLockStates s are equal; false otherwisepublic boolean equals(Object lockState)
equals in class ObjectObject s are equal; false otherwiseObject.equals(java.lang.Object)public int getAsInt()
switch -statements.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS
|
[sap.com]
|
api
|
BC-PIN-PCD
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
-
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice