org.jboss.messaging.utils
Class SimpleIDGenerator

java.lang.Object
  extended by org.jboss.messaging.utils.SimpleIDGenerator
All Implemented Interfaces:
IDGenerator

public class SimpleIDGenerator
extends java.lang.Object
implements IDGenerator

A SimpleIDGenerator

Author:
Tim Fox

Constructor Summary
SimpleIDGenerator(long startID)
           
 
Method Summary
 long generateID()
           
 long getCurrentID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleIDGenerator

public SimpleIDGenerator(long startID)
Method Detail

generateID

public long generateID()
Specified by:
generateID in interface IDGenerator

getCurrentID

public long getCurrentID()
Specified by:
getCurrentID in interface IDGenerator


Copyright © 2006 JBoss Inc. All Rights Reserved.