Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | Cache Folder | Summary of Elements in this Folder | pub.cache.lock:isLockedByCurrentThread
 
pub.cache.lock:isLockedByCurrentThread
WmPublic. Checks whether the current thread is holding a lock on the cached element for the specified key.
Input Parameters
cacheManagerName
String Name of the cache manager that manages the cache. This parameter is case sensitive.
cacheName
String Name of the cache that contains the key. This parameter is case sensitive.
key
Object Key for which you want to check locks.
lockType
String Optional. Type of lock for which to check the cached element.
Key
Description
read
The service checks whether the read lock is held for the current thread. This is the default.
write
The service checks whether the write lock is held for the current thread.
Output Parameters
locked
String Indicates whether the cached element is locked by the current thread.
*true indicates that the element is locked.
*false indicates that the element is not locked.
Note:
If the specified cache is a local cache and the specified lockType is read, the service always returns false.
Usage Notes
Integration Server issues a ServiceException in the following cases:
*If you do not specify all required input parameters.
*If Integration Server cannot find the specified cache manager or cache.