com.atomikos.util
Class UniqueIdMgr
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniqueIdMgr
public UniqueIdMgr(String server)
- Generate a new instance for a given server.
Assumption: there are never two servers with the same name!
get
public String get()
- The main way of obtaining a new UniqueId.
getMaxIdLengthInBytes
public int getMaxIdLengthInBytes()
Copyright © 2016. All Rights Reserved.