org.jasig.cas.ticket.registry.support
Interface LockingStrategy

All Known Implementing Classes:
JdbcLockingStrategy, NoOpLockingStrategy

public interface LockingStrategy

Strategy pattern for defining a locking strategy in support of exclusive execution of some process.

Since:
3.3.6
Version:
$Revision: 47482 $
Author:
Marvin S. Addison

Method Summary
 boolean acquire()
          Attempt to acquire the lock.
 void release()
          Release the lock if held.
 

Method Detail

acquire

boolean acquire()
Attempt to acquire the lock.

Returns:
True if lock was successfully acquired, false otherwise.

release

void release()
Release the lock if held. If the lock is not held nothing is done.



Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.