Package | Description |
---|---|
net.sf.ehcache.concurrent |
This package contains concurrency classes and utilities that are not available in java.util.concurrent.
|
Modifier and Type | Method and Description |
---|---|
static LockType |
LockType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockType[] |
LockType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ReadWriteLockSync.isHeldByCurrentThread(LockType type)
Returns true is this is lock is held at given level by the current thread.
|
boolean |
Sync.isHeldByCurrentThread(LockType type)
Returns true is this is lock is held at given level by the current thread.
|
void |
ReadWriteLockSync.lock(LockType type)
Acquire lock of LockType.READ or WRITE
|
void |
Sync.lock(LockType type)
Acquire lock of LockType.READ or WRITE
|
boolean |
ReadWriteLockSync.tryLock(LockType type,
long msec)
Tries to acquire a LockType.READ or WRITE for a certain period
|
boolean |
Sync.tryLock(LockType type,
long msec)
Tries to acquire a LockType.READ or WRITE for a certain period
|
void |
ReadWriteLockSync.unlock(LockType type)
Releases the lock held by the current Thread.
|
void |
Sync.unlock(LockType type)
Releases the lock held by the current Thread.
|
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.