KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > context > RequestLockContext


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.tc.objectserver.context;
5
6 import com.tc.async.api.EventContext;
7 import com.tc.net.protocol.tcm.ChannelID;
8 import com.tc.object.lockmanager.api.LockID;
9 import com.tc.util.AbstractIdentifier;
10
11 /**
12  * @author steve To change the template for this generated type comment go to Window>Preferences>Java>Code
13  * Generation>Code and Comments
14  */

15 public class RequestLockContext implements EventContext {
16   private final LockID lockID;
17   private final ChannelID channelID;
18   private final AbstractIdentifier sourceID;
19
20   public RequestLockContext(LockID lockID, ChannelID channelID, AbstractIdentifier sourceID) {
21     this.lockID = lockID;
22     this.channelID = channelID;
23     this.sourceID = sourceID;
24   }
25
26   public LockID getLockID() {
27     return lockID;
28   }
29
30   public ChannelID getChannelID() {
31     return channelID;
32   }
33
34   public AbstractIdentifier getSourceID() {
35     return sourceID;
36   }
37
38 }
Popular Tags