com.atomikos.util
Class UniqueIdMgr

java.lang.Object
  extended by com.atomikos.util.UniqueIdMgr

public class UniqueIdMgr
extends Object

For managing a set of unique IDs on behalf of a given server


Constructor Summary
UniqueIdMgr(String server)
          Generate a new instance for a given server.
 
Method Summary
 String get()
          The main way of obtaining a new UniqueId.
 int getMaxIdLengthInBytes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueIdMgr

public UniqueIdMgr(String server)
Generate a new instance for a given server. Assumption: there are never two servers with the same name!

Method Detail

get

public String get()
The main way of obtaining a new UniqueId.


getMaxIdLengthInBytes

public int getMaxIdLengthInBytes()


Copyright © 2016. All Rights Reserved.