Class LongKeyGenerator
Ultra-fast key generator for queues using long keys
public static class LongKeyGenerator
- Inheritance
-
LongKeyGenerator
- Inherited Members
Methods
EncodeSemantic(string)
Encodes semantic string directly to long (up to 8 chars, case-sensitive)
public static long EncodeSemantic(string semantic)
Parameters
semanticstring
Returns
Next()
Generates next unique key (thread-safe, fastest option)
public static long Next()
Returns
NextThreadDistributed()
Generates key with thread distribution for better performance under high contention
public static long NextThreadDistributed()