Class SequenceNumberGenerator

java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.util.SequenceNumberGenerator

public class SequenceNumberGenerator extends Object
  • Field Details

    • MAXTOKENVALUE

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

      public static final int MAXSUBREQUESTID
      Specify the max sub request ID.
      See Also:
  • Constructor Details

    • SequenceNumberGenerator

      public SequenceNumberGenerator()
  • Method Details

    • 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.