|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.ors.LongIDFactory
public class LongIDFactory
A long ID factory. It relies on a block factory to assign blocks, and then locally assigns IDs within that block. The block factory must generate numeric IDs.
| Field Summary | |
|---|---|
static long |
LOCAL_ID_COUNT
The count of local IDs assigned per block. |
| Constructor Summary | |
|---|---|
LongIDFactory(IDFactory blockFactory)
Creates a new long ID factory that relies on the given block factory, which must generate numeric IDs. |
|
| Method Summary | |
|---|---|
IDFactory |
getBlockFactory()
Returns the receiver's block factory. |
long |
getNext()
Gets the next ID from the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long LOCAL_ID_COUNT
| Constructor Detail |
|---|
public LongIDFactory(IDFactory blockFactory)
blockFactory - The block factory.| Method Detail |
|---|
public IDFactory getBlockFactory()
public long getNext()
throws NoMoreIDsException
NoMoreIDsException - Thrown if retrieval fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||