Skip navigation links

Oracle Communications Services Gatekeeper Java API Reference
5.0

E21717-02


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


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:
WLNG instance id

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:
the next integer id

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:
the next long id

Skip navigation links

Oracle Communications Services Gatekeeper Java API Reference
5.0

E21717-02


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.