01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object.msg;
06:
07: import com.tc.net.groups.ClientID;
08: import com.tc.net.protocol.tcm.MessageChannel;
09: import com.tc.object.ObjectID;
10: import com.tc.object.lockmanager.api.LockContext;
11: import com.tc.object.lockmanager.api.WaitContext;
12:
13: import java.util.Collection;
14: import java.util.Set;
15:
16: public interface ClientHandshakeMessage {
17:
18: public Collection getTransactionSequenceIDs();
19:
20: public void addObjectID(ObjectID object);
21:
22: public Set getObjectIDs();
23:
24: public void addLockContext(LockContext ctxt);
25:
26: public Collection getLockContexts();
27:
28: public void addWaitContext(WaitContext ctxt);
29:
30: public Collection getWaitContexts();
31:
32: public void addPendingLockContext(LockContext ctxt);
33:
34: public void addPendingTryLockContext(LockContext ctxt);
35:
36: public void setClientVersion(String v);
37:
38: public String getClientVersion();
39:
40: public Collection getPendingLockContexts();
41:
42: public Collection getPendingTryLockContexts();
43:
44: public ClientID getClientID();
45:
46: public void send();
47:
48: public void setTransactionSequenceIDs(
49: Collection transactionSequenceIDs);
50:
51: public void setResentTransactionIDs(Collection resentTransactionIDs);
52:
53: public Collection getResentTransactionIDs();
54:
55: public void setIsObjectIDsRequested(boolean request);
56:
57: public boolean isObjectIDsRequested();
58:
59: public MessageChannel getChannel();
60:
61: }
|