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 interface ObjectIDSequence {
06:
07: /**
08: * Requests a new batch of object ids.
09: *
10: * @param batchSize The number of object ids you want in your batch.
11: * @return The first id of the next batch of object ids.
12: */
13: public long nextObjectIDBatch(int batchSize);
14:
15: public void setNextAvailableObjectID(long startID);
16: }
|