Package | Description |
---|---|
org.hibernate.cache |
This package defines APIs/SPIs and implementations for the Hibernate second-level cache.
|
org.hibernate.cache.access |
Defines contracts for transactional and concurrent access to cached
entity and
collection data. |
org.hibernate.cache.impl.bridge |
Modifier and Type | Class and Description |
---|---|
static class |
ReadWriteCache.Lock
A soft lock which supports concurrent locking,
timestamped with the time it was released
|
Modifier and Type | Method and Description |
---|---|
SoftLock |
NonstrictReadWriteCache.lock(Object key,
Object version)
Do nothing.
|
SoftLock |
ReadOnlyCache.lock(Object key,
Object version)
Unsupported!
|
SoftLock |
CacheConcurrencyStrategy.lock(Object key,
Object version)
Deprecated.
We are going to attempt to update/delete the keyed object.
|
SoftLock |
TransactionalCache.lock(Object key,
Object version)
Do nothing, returning null.
|
SoftLock |
ReadWriteCache.lock(Object key,
Object version)
Stop any other transactions reading or writing this item to/from
the cache.
|
Modifier and Type | Method and Description |
---|---|
boolean |
NonstrictReadWriteCache.afterUpdate(Object key,
Object value,
Object version,
SoftLock lock)
Invalidate the item (again, for safety).
|
boolean |
ReadOnlyCache.afterUpdate(Object key,
Object value,
Object version,
SoftLock lock)
Unsupported!
|
boolean |
CacheConcurrencyStrategy.afterUpdate(Object key,
Object value,
Object version,
SoftLock lock)
Deprecated.
Called after an item has been updated (after the transaction completes),
instead of calling release().
|
boolean |
TransactionalCache.afterUpdate(Object key,
Object value,
Object version,
SoftLock clientLock)
Do nothing.
|
boolean |
ReadWriteCache.afterUpdate(Object key,
Object value,
Object version,
SoftLock clientLock)
Re-cache the updated state, if and only if there there are
no other concurrent soft locks.
|
void |
NonstrictReadWriteCache.release(Object key,
SoftLock lock)
Invalidate the item (again, for safety).
|
void |
ReadOnlyCache.release(Object key,
SoftLock lock)
Unsupported!
|
void |
CacheConcurrencyStrategy.release(Object key,
SoftLock lock)
Deprecated.
Called when we have finished the attempted update/delete (which may or
may not have been successful), after transaction completion.
|
void |
TransactionalCache.release(Object key,
SoftLock clientLock)
Do nothing.
|
void |
ReadWriteCache.release(Object key,
SoftLock clientLock)
Release the soft lock on the item.
|
Modifier and Type | Method and Description |
---|---|
SoftLock |
CollectionRegionAccessStrategy.lockItem(Object key,
Object version)
We are going to attempt to update/delete the keyed object.
|
SoftLock |
EntityRegionAccessStrategy.lockItem(Object key,
Object version)
We are going to attempt to update/delete the keyed object.
|
SoftLock |
CollectionRegionAccessStrategy.lockRegion()
Lock the entire region
|
SoftLock |
EntityRegionAccessStrategy.lockRegion()
Lock the entire region
|
Modifier and Type | Method and Description |
---|---|
boolean |
EntityRegionAccessStrategy.afterUpdate(Object key,
Object value,
Object currentVersion,
Object previousVersion,
SoftLock lock)
Called after an item has been updated (after the transaction completes),
instead of calling release().
|
void |
CollectionRegionAccessStrategy.unlockItem(Object key,
SoftLock lock)
Called when we have finished the attempted update/delete (which may or
may not have been successful), after transaction completion.
|
void |
EntityRegionAccessStrategy.unlockItem(Object key,
SoftLock lock)
Called when we have finished the attempted update/delete (which may or
may not have been successful), after transaction completion.
|
void |
CollectionRegionAccessStrategy.unlockRegion(SoftLock lock)
Called after we have finished the attempted invalidation of the entire
region
|
void |
EntityRegionAccessStrategy.unlockRegion(SoftLock lock)
Called after we have finished the attempted invalidation of the entire
region
|
Modifier and Type | Method and Description |
---|---|
SoftLock |
EntityAccessStrategyAdapter.lockItem(Object key,
Object version) |
SoftLock |
CollectionAccessStrategyAdapter.lockItem(Object key,
Object version) |
SoftLock |
EntityAccessStrategyAdapter.lockRegion() |
SoftLock |
CollectionAccessStrategyAdapter.lockRegion() |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityAccessStrategyAdapter.afterUpdate(Object key,
Object value,
Object currentVersion,
Object previousVersion,
SoftLock lock) |
void |
EntityAccessStrategyAdapter.unlockItem(Object key,
SoftLock lock) |
void |
CollectionAccessStrategyAdapter.unlockItem(Object key,
SoftLock lock) |
void |
EntityAccessStrategyAdapter.unlockRegion(SoftLock lock) |
void |
CollectionAccessStrategyAdapter.unlockRegion(SoftLock lock) |
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved