KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > msg > ClientHandshakeMessage


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.object.msg;
5
6 import com.tc.net.protocol.tcm.ChannelID;
7 import com.tc.net.protocol.tcm.MessageChannel;
8 import com.tc.object.ObjectID;
9 import com.tc.object.lockmanager.api.LockContext;
10 import com.tc.object.lockmanager.api.WaitContext;
11
12 import java.util.Collection JavaDoc;
13 import java.util.Set JavaDoc;
14
15 public interface ClientHandshakeMessage {
16
17   public Collection JavaDoc getTransactionSequenceIDs();
18
19   public void addObjectID(ObjectID object);
20
21   public Set JavaDoc getObjectIDs();
22
23   public void addLockContext(LockContext ctxt);
24
25   public Collection JavaDoc getLockContexts();
26
27   public void addWaitContext(WaitContext ctxt);
28
29   public Collection JavaDoc getWaitContexts();
30
31   public void addPendingLockContext(LockContext ctxt);
32
33   public Collection JavaDoc getPendingLockContexts();
34
35   public ChannelID getChannelID();
36
37   public void send();
38
39   public void setTransactionSequenceIDs(Collection JavaDoc transactionSequenceIDs);
40
41   public void setResentTransactionIDs(Collection JavaDoc resentTransactionIDs);
42
43   public Collection JavaDoc getResentTransactionIDs();
44
45   public void setIsObjectIDsRequested(boolean request);
46
47   public boolean isObjectIDsRequested();
48
49   public MessageChannel getChannel();
50
51 }
52
Popular Tags