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 intMAXSUBREQUESTIDSpecify the max sub request ID.static doubleMAXTOKENVALUESpecify the max token value.
-
Constructor Summary
Constructors Constructor Description SequenceNumberGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetCurrentFSSHTTPBSubRequestID()This method is used to get the current sub request ID and atomic adding the token by 1.static intGetCurrentSerialNumber()This method is used to get the current serial number and atomic adding the token by 1.static intgetCurrentToken()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 TikaExceptionThis 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 TikaExceptionThis 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.
-
-