| java.lang.Object org.jasig.portal.concurrency.locking.MemoryEntityLockStore
MemoryEntityLockStore | public class MemoryEntityLockStore implements IEntityLockStore(Code) | | In-memory store for IEntityLocks .
author: Dan Ellentuck version: $Revision: 35080 $ |
Method Summary | |
public void | add(IEntityLock lock) Adds this IEntityLock to the store. | public void | delete(IEntityLock lock) Deletes this IEntityLock from the store. | public void | deleteAll() | public void | deleteExpired(java.util.Date expiration) Deletes the expired IEntityLocks from the underlying store. | public IEntityLock[] | find(Class entityType, String entityKey, Integer lockType, java.util.Date expiration, String lockOwner) Returns an IEntityLock[] based on the params, any or all of which may be null. | public IEntityLock | find(IEntityLock lock) Returns this lock if it exists in the store. | public IEntityLock[] | findUnexpired(java.util.Date expiration, Class entityType, String entityKey, Integer lockType, String lockOwner) Returns an IEntityLock[] containing unexpired locks, based on the params,
any or all of which may be null EXCEPT FOR expiration . | public static synchronized IEntityLockStore | singleton() | public void | update(IEntityLock lock, java.util.Date newExpiration) | public void | update(IEntityLock lock, java.util.Date newExpiration, Integer newLockType) Make sure the store has a reference to the lock, and then add the lock
to refresh the SmartCache wrapper. |
MemoryEntityLockStore | public MemoryEntityLockStore()(Code) | | MemoryEntityLockStore constructor comment.
|
deleteAll | public void deleteAll()(Code) | | |
deleteExpired | public void deleteExpired(java.util.Date expiration) throws LockingException(Code) | | Deletes the expired IEntityLocks from the underlying store.
Parameters: expiration - java.util.Date |
find | public IEntityLock[] find(Class entityType, String entityKey, Integer lockType, java.util.Date expiration, String lockOwner) throws LockingException(Code) | | Returns an IEntityLock[] based on the params, any or all of which may be null. A
null param means any value, so find(myType,myKey,null,null,null) will
return all IEntityLocks for myType and myKey.
org.jasig.portal.concurrency.locking.IEntityLock[] Parameters: entityType - Class Parameters: entityKey - String Parameters: lockType - Integer - so we can accept a null value. Parameters: expiration - Date Parameters: lockOwner - String exception: LockingException - - wraps an Exception specific to the store. |
findUnexpired | public IEntityLock[] findUnexpired(java.util.Date expiration, Class entityType, String entityKey, Integer lockType, String lockOwner) throws LockingException(Code) | | Returns an IEntityLock[] containing unexpired locks, based on the params,
any or all of which may be null EXCEPT FOR expiration . A null
param means any value, so find(expir,myType,myKey,null,null)
will return all IEntityLocks for myType and myKey unexpired
as of expir .
Parameters: expiration - Date Parameters: entityType - Class Parameters: entityKey - String Parameters: lockType - Integer - so we can accept a null value. Parameters: lockOwner - String exception: LockingException - - wraps an Exception specific to the store. |
singleton | public static synchronized IEntityLockStore singleton()(Code) | | org.jasig.portal.concurrency.locking.IEntityLockStore |
update | public void update(IEntityLock lock, java.util.Date newExpiration, Integer newLockType) throws LockingException(Code) | | Make sure the store has a reference to the lock, and then add the lock
to refresh the SmartCache wrapper.
Parameters: lock - org.jasig.portal.concurrency.locking.IEntityLock Parameters: newExpiration - java.util.Date Parameters: newLockType - Integer |
|
|