public class JdkConcurrentConversationLock extends java.lang.Object implements ConversationLock
ReentrantLock
within Java 5's util.concurrent.locks
package.Constructor and Description |
---|
JdkConcurrentConversationLock(int timeoutSeconds) |
Modifier and Type | Method and Description |
---|---|
void |
lock()
Acquire the conversation lock.
|
void |
unlock()
Release the conversation lock.
|
public JdkConcurrentConversationLock(int timeoutSeconds)
public void lock() throws ConversationLockException
ConversationLock
lock
in interface ConversationLock
ConversationLockException
- if an exception is thrown attempting to acquire this lockpublic void unlock()
ConversationLock
unlock
in interface ConversationLock