|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.resource.parlay.util.ResourceIDFactory
public class ResourceIDFactory
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 |
|---|
public ResourceIDFactory()
| Method Detail |
|---|
public static int getNextID()
public static int getCurrentID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||