Class SequenceNumberGenerator
java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.util.SequenceNumberGenerator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Specify the max sub request ID.static final double
Specify the max token value. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
This method is used to get the current sub request ID and atomic adding the token by 1.static int
This method is used to get the current serial number and atomic adding the token by 1.static int
This method is used to get the current token value and atomic adding the token by 1.
-
Field Details
-
MAXTOKENVALUE
public static final double MAXTOKENVALUESpecify the max token value.- See Also:
-
MAXSUBREQUESTID
public static final int MAXSUBREQUESTIDSpecify the max sub request ID.- See Also:
-
-
Constructor Details
-
SequenceNumberGenerator
public SequenceNumberGenerator()
-
-
Method Details
-
getCurrentToken
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
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.
-