Package io.nats.client
Class NUID
- java.lang.Object
-
- io.nats.client.NUID
-
public final class NUID extends java.lang.ObjectA highly performant unique identifier generator. The library uses this to generate an inbox for request-replies. Applications can use their own NUID to generate subjects as well. A shareable Global instance is also available vianextGlobal().
-
-
Constructor Summary
Constructors Constructor Description NUID()The default NUID constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringnext()Generate the next NUID string from this instance.static java.lang.StringnextGlobal()
-