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 dso.concurrency;
05:
06: /**
07: * Created by Alan Brown
08: * Date: May 17, 2005
09: * Time: 1:53:28 PM
10: */
11:
12: public class SimpleTrade {
13:
14: private int counter = 0;
15:
16: public synchronized void incrementCounter() {
17: counter++;
18: }
19:
20: public synchronized int getCounter() {
21: return counter;
22: }
23: }
|