|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheLockProvider
| Method Summary | |
|---|---|
Sync[] |
getAndWriteLockAllSyncForKeys(long timeout,
java.lang.Object... keys)
Gets and write lock the Sync Stripes to use for the given keys. |
Sync[] |
getAndWriteLockAllSyncForKeys(java.lang.Object... keys)
Gets and write lock the Sync Stripes to use for the given keys. |
Sync |
getSyncForKey(java.lang.Object key)
Gets the Sync Stripe to use for a given key. |
void |
unlockWriteLockForAllKeys(java.lang.Object... keys)
write unlock the Sync Stripes to use for the given keys. |
| Method Detail |
|---|
Sync getSyncForKey(java.lang.Object key)
key - the key
Sync[] getAndWriteLockAllSyncForKeys(java.lang.Object... keys)
keys - the keys to lock and get syncs for
Sync[] getAndWriteLockAllSyncForKeys(long timeout,
java.lang.Object... keys)
throws java.util.concurrent.TimeoutException
timeout - amount of milliseconds before timeout occurskeys - the keys to lock and get syncs for
java.util.concurrent.TimeoutException - thrown when locks could not be acquired within
specified timeout.void unlockWriteLockForAllKeys(java.lang.Object... keys)
keys - the keys to unlock
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||