Oracle Corporation

com.bea.wlcp.wlng.api.util
Class IDFactory

java.lang.Object
  extended bycom.bea.wlcp.wlng.api.util.IDFactory

public abstract class IDFactory
extends Object

Factory for getting IDs

Copyright © 2008 Oracle Corporation Systems, Inc. All Rights Reserved.

Constructor Summary
IDFactory()
           
 
Method Summary
abstract  void close()
          Close the factory
static IDFactory getFactory()
           
abstract  int getInstanceID()
          Get WLNG instance id.
abstract  int getNextIntID()
          Get the next integer id that is unique among all WLNG instances.
abstract  long getNextLongID()
          Get the next long id that is unique among all WLNG instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDFactory

public IDFactory()
Method Detail

close

public abstract void close()
Close the factory


getFactory

public static IDFactory getFactory()

getInstanceID

public abstract int getInstanceID()
Get WLNG instance id. Always return the same unique id for a given WLNG instance.

Returns:

getNextIntID

public abstract int getNextIntID()
Get the next integer id that is unique among all WLNG instances. IDs will cycle when maxium is reached

Returns:

getNextLongID

public abstract long getNextLongID()
Get the next long id that is unique among all WLNG instances. IDs will cycle when maxium is reached exceeded.

Returns:

Oracle Corporation