Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

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

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

public abstract class IDFactory
extends java.lang.Object

Factory for getting WLNG IDs.


Constructor Summary
IDFactory()
           
 
Method Summary
abstract  void close()
          Close the factory.
static IDFactory getFactory()
           
abstract  int getInstanceID()
          Get the 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 the 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 maximum 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 the maximum is reached.

Returns:
the next long id.

Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

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