org.jasig.cas.ticket.registry.support
Class NoOpLockingStrategy
java.lang.Object
org.jasig.cas.ticket.registry.support.NoOpLockingStrategy
- All Implemented Interfaces:
- LockingStrategy
public class NoOpLockingStrategy
- extends Object
- implements LockingStrategy
No-Op locking strategy that allows the use of DefaultTicketRegistryCleaner
in environments where exclusive access to the registry for cleaning is either
unnecessary or not possible.
- Since:
- 3.3.6
- Version:
- $Revision$
- Author:
- Marvin Addison
|
Method Summary |
boolean |
acquire()
Attempt to acquire the lock. |
void |
release()
Release the lock if held. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpLockingStrategy
public NoOpLockingStrategy()
acquire
public boolean acquire()
- Description copied from interface:
LockingStrategy
- Attempt to acquire the lock.
- Specified by:
acquire in interface LockingStrategy
- Returns:
- True if lock was successfully acquired, false otherwise.
- See Also:
LockingStrategy.acquire()
release
public void release()
- Description copied from interface:
LockingStrategy
- Release the lock if held. If the lock is not held nothing is done.
- Specified by:
release in interface LockingStrategy
- See Also:
LockingStrategy.release()
Copyright © 2004-2013 Jasig. All Rights Reserved.