KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > util > sequence > ObjectIDSequence


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.tc.util.sequence;
5
6 public interface ObjectIDSequence {
7
8   /**
9    * Requests a new batch of object ids.
10    *
11    * @param batchSize The number of object ids you want in your batch.
12    * @return The first id of the next batch of object ids.
13    */

14   public long nextObjectIDBatch(int batchSize);
15   
16   
17   public void setNextAvailableObjectID(long startID);
18 }
19
Popular Tags