org.jasig.cas.ticket.registry.support
Class NoOpLockingStrategy

java.lang.Object
  extended by org.jasig.cas.ticket.registry.support.NoOpLockingStrategy
All Implemented Interfaces:
LockingStrategy

public class NoOpLockingStrategy
extends java.lang.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: 47483 $
Author:
Marvin Addison

Constructor Summary
NoOpLockingStrategy()
           
 
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
 

Constructor Detail

NoOpLockingStrategy

public NoOpLockingStrategy()
Method Detail

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-2010 Java Architectures Special Interest Group. All Rights Reserved.