public final class ResourceLockService extends Object implements IResourceLockService
NamedLocks suitable for within JVM locking.| Constructor and Description |
|---|
ResourceLockService() |
| Modifier and Type | Method and Description |
|---|---|
IResourceLock |
acquireLock(String namespace)
Acquire an exclusive lock on the named resource.
|
IResourceLock |
acquireLock(String namespace,
long timeout)
Acquire an exclusive lock the named resource.
|
public IResourceLock acquireLock(String namespace)
IResourceLockServiceacquireLock in interface IResourceLockServicenamespace - The named resource.public IResourceLock acquireLock(String namespace, long timeout) throws InterruptedException, TimeoutException
IResourceLockServiceacquireLock in interface IResourceLockServicenamespace - The named resource.timeout - Timeout in milliseconds for the request -or-
Long.MAX_VALUE to wait forever.InterruptedExceptionTimeoutExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.