|
SAP NetWeaver 7.30 SP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILockHandle
Provides access to the lock of a unit. Through this interface, applications can
IUnit.getLockHandle().
This interface is not intended to be implemented by clients.
| Field Summary | |
|---|---|
static String |
LOCK_APPLICATION_ID
Lock-Application-Id which is used for all locks in the Pcd GL |
| Method Summary | |
|---|---|
ILock |
create(String userId,
String sessionId,
String description)
Creates a new lock in the lock registry and returns a new instance of ILock) for the pcd unit
to which this ILockHandle instance refers. |
ILock |
get()
Returns a lock object for an existing lock for the Pcd unit. |
long |
getConfiguredLockLifespan()
Return the configured value for the lifespan of a lock. |
long |
getConfiguredProtectionSpan()
Returns the configured value for the protection span of a lock. |
| Field Detail |
|---|
static final String LOCK_APPLICATION_ID
| Method Detail |
|---|
long getConfiguredProtectionSpan()
throws LockingException
create(java.lang.String, java.lang.String, java.lang.String)) or refreshed (by calling ILock.refresh(java.lang.String, java.lang.String) or
ILock.getStateAndRefresh(java.lang.String, java.lang.String)).
LockingException - if the lock registry is not
accessible, or some problem occured
during LockHandle initializationgetConfiguredLockLifespan()
long getConfiguredLockLifespan()
throws LockingException
create(java.lang.String, java.lang.String, java.lang.String)) or refreshed (by calling ILock.refresh(java.lang.String, java.lang.String) or
ILock.getStateAndRefresh(java.lang.String, java.lang.String)). Locks that are older than the lifespan
are automatically released.
LockingException - if the lock registry is not
accessible, or some problem occured
during LockHandle initializationgetConfiguredProtectionSpan()
ILock create(String userId,
String sessionId,
String description)
throws LockingException
ILock) for the pcd unit
to which this ILockHandle instance refers.
The lock will be owned by the provided user and session.
The description can be used to store additional data for administrative purposes;
this parameter is not considered by the lock service. LockingException will be thrown.
userId - id of the current usersessionId - id of the current sessiondescription - additional descriptive information
about the lock
LockingException - if the lock registry is not accessible, or
ILock get()
throws LockingException
ILock.getUserId() and ILock.getSessionId().
LockingException - if the lock registry is not accessible, or | Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[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] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
[sap.com] EP-BASIS
|
[sap.com]
|
api
|
BC-PIN-PCD
|
|
SAP NetWeaver 7.30 SP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||