Package | Description |
---|---|
org.opendaylight.infrautils.utils.concurrent |
General purpose concurrency related utilities.
|
Modifier and Type | Class and Description |
---|---|
static class |
NamedSimpleReentrantLock.Acquired
Result of a successful lock operation, representing a single lease on the lock.
|
Modifier and Type | Method and Description |
---|---|
NamedSimpleReentrantLock.AcquireResult |
NamedSimpleReentrantLock.tryAcquire()
Acquires the lock for the given key only if it is not held by another thread at the time of invocation.
|
NamedSimpleReentrantLock.AcquireResult |
NamedSimpleReentrantLock.tryAcquire(long timeout,
TimeUnit unit)
Tries to acquire the lock for the given key if it is not held by another thread within the given waiting time.
|
NamedSimpleReentrantLock.AcquireResult |
NamedLocks.tryAcquire(T lockName)
Acquires the lock for the given key only if it is not held by another thread at the time of invocation.
|
NamedSimpleReentrantLock.AcquireResult |
NamedLocks.tryAcquire(T lockName,
long timeout,
TimeUnit unit)
Tries to acquire the lock for the given key if it is not held by another thread within the given waiting time.
|
Copyright © 2019 OpenDaylight. All rights reserved.