01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.tx;
05:
06: import com.tc.util.SequenceID;
07:
08: import java.util.Collection;
09:
10: /**
11: * Client representation of a batch of transactions. Has methods that are only useful in a client context.
12: */
13: public interface ClientTransactionBatch extends TransactionBatch {
14:
15: public TxnBatchID getTransactionBatchID();
16:
17: /**
18: * Adds the collection of transaction ids in this batch to the given collection and returns it.
19: */
20: public Collection addTransactionIDsTo(Collection c);
21:
22: /**
23: * Add the given transaction to this batch.
24: */
25: public void addTransaction(ClientTransaction txn);
26:
27: public void removeTransaction(TransactionID txID);
28:
29: /**
30: * Send the transaction to the server.
31: */
32: public void send();
33:
34: public int numberOfTxns();
35:
36: public int byteSize();
37:
38: public boolean isNull();
39:
40: public SequenceID getMinTransactionSequence();
41:
42: public Collection addTransactionSequenceIDsTo(Collection sequenceIDs);
43:
44: // For testing
45: public String dump();
46: }
|