Interface ServerYeast


  • public interface ServerYeast
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static char[] ALPHABET  
      static java.lang.ThreadLocal<java.security.SecureRandom> THREAD_RANDOM
      A ThreadLocal is used to improve thread performance since SecureRandom do not perform well with thread contention.
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static java.lang.String encode​(long num)  
      static java.lang.String yeast()  
    • Field Detail

      • THREAD_RANDOM

        static final java.lang.ThreadLocal<java.security.SecureRandom> THREAD_RANDOM
        A ThreadLocal is used to improve thread performance since SecureRandom do not perform well with thread contention.
      • ALPHABET

        static final char[] ALPHABET
    • Method Detail

      • yeast

        static java.lang.String yeast()
      • encode

        static java.lang.String encode​(long num)