Class SequenceNumberGenerator


  • public class SequenceNumberGenerator
    extends Object
    • Field Detail

      • MAXTOKENVALUE

        public static final double MAXTOKENVALUE
        Specify the max token value.
        See Also:
        Constant Field Values
      • MAXSUBREQUESTID

        public static final int MAXSUBREQUESTID
        Specify the max sub request ID.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SequenceNumberGenerator

        public SequenceNumberGenerator()
    • Method Detail

      • getCurrentToken

        public static int getCurrentToken()
                                   throws TikaException
        This method is used to get the current token value and atomic adding the token by 1.
        Returns:
        Returns the current token value.
        Throws:
        TikaException
      • getCurrentFSSHTTPBSubRequestID

        public static int getCurrentFSSHTTPBSubRequestID()
                                                  throws TikaException
        This method is used to get the current sub request ID and atomic adding the token by 1.
        Returns:
        Returns the current sub request ID.
        Throws:
        TikaException
      • GetCurrentSerialNumber

        public static int GetCurrentSerialNumber()
        This method is used to get the current serial number and atomic adding the token by 1.
        Returns:
        Return the current serial number.