org.mobicents.slee.resource.parlay.util
Class ResourceIDFactory

java.lang.Object
  extended by org.mobicents.slee.resource.parlay.util.ResourceIDFactory

public class ResourceIDFactory
extends java.lang.Object

Returns IDs to be used in the RA API. TODO this class uses an in memory counter. Should use some sort of back end sequence to avoid ID repetition and persistence across a failover. May also refactor to a factory pattern and create one per service but that doesn't matter yet.


Constructor Summary
ResourceIDFactory()
           
 
Method Summary
static int getCurrentID()
           
static int getNextID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceIDFactory

public ResourceIDFactory()
Method Detail

getNextID

public static int getNextID()

getCurrentID

public static int getCurrentID()


Copyright © 2009. All Rights Reserved.