KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > runner > TestGlobalIdGenerator


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.runner;
5
6 import com.tc.simulator.app.GlobalIdGenerator;
7
8
9
10 public final class TestGlobalIdGenerator implements GlobalIdGenerator {
11   int count = 0;
12
13   public synchronized long nextId() {
14     return count++;
15   }
16 }
Popular Tags