Package | Description |
---|---|
net.sf.ehcache |
This package contains the public API for using ehcache.
|
net.sf.ehcache.concurrent |
This package contains concurrency classes and utilities that are not available in java.util.concurrent.
|
net.sf.ehcache.constructs.blocking |
Doug Lea in his book Concurrent Programming in Java talks about concurrency support constructs.
|
net.sf.ehcache.constructs.nonstop.concurrency |
Nonstop feature related to concurrent package
|
net.sf.ehcache.store.disk |
This package contains the disk store.
|
Modifier and Type | Method and Description |
---|---|
private void |
Cache.acquireLockOnKey(java.lang.Object key,
LockType lockType) |
private void |
Cache.releaseLockOnKey(java.lang.Object key,
LockType lockType) |
Modifier and Type | Method and Description |
---|---|
static LockType |
LockType.valueOf(java.lang.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 |
---|---|
private java.util.concurrent.locks.Lock |
ReadWriteLockSync.getLock(LockType type) |
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.
|
Modifier and Type | Method and Description |
---|---|
private void |
BlockingCache.acquiredLockForKey(java.lang.Object key,
Sync lock,
LockType lockType) |
Modifier and Type | Field and Description |
---|---|
private LockType |
NonstopSync.ExplicitLockingClusterOperationImpl.type |
Modifier and Type | Method and Description |
---|---|
boolean |
NonstopSync.isHeldByCurrentThread(LockType type)
Returns true is this is lock is held at given level by the current thread.
|
void |
NonstopSync.lock(LockType type)
Acquire lock of LockType.READ or WRITE
|
abstract boolean |
NonstopSync.LockOperationType.performOperation(ExplicitLockingContext appThreadLockContext,
NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
java.lang.Object key,
long timeout,
LockType type,
NonstopConfiguration config) |
abstract void |
NonstopSync.LockOperationType.rollback(ExplicitLockingContext appThreadLockContext,
NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
java.lang.Object key,
LockType type,
boolean success) |
boolean |
NonstopSync.tryLock(LockType type,
long msec)
Tries to acquire a LockType.READ or WRITE for a certain period
|
void |
NonstopSync.unlock(LockType type)
Releases the lock held by the current Thread.
|
Constructor and Description |
---|
ExplicitLockingClusterOperationImpl(LockType type,
long timeout,
ExplicitLockingContext appThreadLockContext,
NonstopSync.LockOperationType lockOperationType) |
Modifier and Type | Method and Description |
---|---|
boolean |
DiskStore.ReadWriteLockSync.isHeldByCurrentThread(LockType type)
Returns true is this is lock is held at given level by the current thread.
|
void |
DiskStore.ReadWriteLockSync.lock(LockType type)
Acquire lock of LockType.READ or WRITE
|
boolean |
DiskStore.ReadWriteLockSync.tryLock(LockType type,
long msec)
Tries to acquire a LockType.READ or WRITE for a certain period
|
void |
DiskStore.ReadWriteLockSync.unlock(LockType type)
Releases the lock held by the current Thread.
|