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: */package com.tc.util.sequence;
04:
05: public class SimpleSequence implements Sequence {
06: private long sequence;
07:
08: public synchronized long next() {
09: return ++sequence;
10: }
11:
12: public synchronized long current() {
13: return sequence;
14: }
15:
16: }
|