KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > persistence > api > PersistentSequence


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.objectserver.persistence.api;
5
6 public interface PersistentSequence {
7
8   // This provide a unique id for this instance of the sequence. (ideally unique for every sequence starting at 0)
9
public String JavaDoc getUID();
10
11   public long next();
12
13   public long nextBatch(int batchSize);
14   
15   public void setNext(long next);
16
17 }
Popular Tags