KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tcspring > DSOConversationLock


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tcspring;
5
6 import org.springframework.webflow.conversation.impl.ConversationLock;
7
8 import com.tc.object.bytecode.Manager;
9 import com.tc.object.bytecode.ManagerUtil;
10
11 /**
12  * Clustered conversation lock
13  *
14  * @author Eugene Kuleshov
15  */

16 class DSOConversationLock implements ConversationLock {
17
18   public void lock() {
19     ManagerUtil.monitorEnter(this, Manager.LOCK_TYPE_WRITE);
20   }
21
22   public void unlock() {
23     ManagerUtil.monitorExit(this);
24   }
25 }
26
Popular Tags