01: /*
02: * All content copyright (c) 2003-2007 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.object.lockmanager.api.LockID;
07:
08: /**
09: * Transaction context
10: */
11: public interface TransactionContext {
12:
13: /**
14: * @return Type of transaction
15: */
16: public abstract TxnType getType();
17:
18: /**
19: * @return First lock identifier in the transaction
20: */
21: public abstract LockID getLockID();
22:
23: /**
24: * @return All lock identifiers that have been involved in the transaction
25: */
26: public abstract LockID[] getAllLockIDs();
27:
28: /**
29: * Remove a lock previously involved in the transaction
30: * @param id Identifier
31: */
32: public abstract void removeLock(LockID id);
33:
34: }
|