Class SequenceNumberGenerator
- java.lang.Object
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.util.SequenceNumberGenerator
-
public class SequenceNumberGenerator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAXSUBREQUESTID
Specify the max sub request ID.static double
MAXTOKENVALUE
Specify the max token value.
-
Constructor Summary
Constructors Constructor Description SequenceNumberGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getCurrentFSSHTTPBSubRequestID()
This method is used to get the current sub request ID and atomic adding the token by 1.static int
GetCurrentSerialNumber()
This method is used to get the current serial number and atomic adding the token by 1.static int
getCurrentToken()
This method is used to get the current token value and atomic adding the token by 1.
-
-
-
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
-
-
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.
-
-