Spring Web Flow

org.springframework.webflow.conversation.impl
Class JdkConcurrentConversationLock

java.lang.Object
  extended by org.springframework.webflow.conversation.impl.JdkConcurrentConversationLock
All Implemented Interfaces:
java.io.Serializable, ConversationLock

public class JdkConcurrentConversationLock
extends java.lang.Object
implements ConversationLock

A conversation lock that relies on a ReentrantLock within Java 5's util.concurrent.locks package.

Author:
Keith Donald
See Also:
Serialized Form

Constructor Summary
JdkConcurrentConversationLock(int timeoutSeconds)
           
 
Method Summary
 void lock()
          Acquire the conversation lock.
 void unlock()
          Release the conversation lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkConcurrentConversationLock

public JdkConcurrentConversationLock(int timeoutSeconds)
Method Detail

lock

public void lock()
          throws ConversationLockException
Description copied from interface: ConversationLock
Acquire the conversation lock.

Specified by:
lock in interface ConversationLock
Throws:
ConversationLockException - if an exception is thrown attempting to acquire this lock

unlock

public void unlock()
Description copied from interface: ConversationLock
Release the conversation lock.

Specified by:
unlock in interface ConversationLock

Spring Web Flow