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.objectserver.persistence.impl;
06:
07: import EDU.oswego.cs.dl.util.concurrent.LinkedQueue;
08:
09: import com.tc.exception.TCRuntimeException;
10: import com.tc.objectserver.persistence.api.PersistenceTransaction;
11:
12: public final class TestPersistenceTransaction implements
13: PersistenceTransaction {
14:
15: public static final TestPersistenceTransaction NULL_TRANSACTION = new TestPersistenceTransaction();
16:
17: public final LinkedQueue commitContexts = new LinkedQueue();
18: public final LinkedQueue commitSyncContexts = new LinkedQueue();
19:
20: public void commit() {
21: try {
22: commitContexts.put(new Object());
23: } catch (InterruptedException e) {
24: throw new TCRuntimeException(e);
25: }
26: }
27:
28: public Object getProperty(Object key) {
29: return null;
30: }
31:
32: public Object setProperty(Object key, Object value) {
33: return null;
34: }
35: }
|