Class SequenceNumberGenerator
- java.lang.Object
- 
- org.apache.tika.parser.microsoft.onenote.fsshttpb.util.SequenceNumberGenerator
 
- 
 public class SequenceNumberGenerator extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static intMAXSUBREQUESTIDSpecify the max sub request ID.static doubleMAXTOKENVALUESpecify the max token value.
 - 
Constructor SummaryConstructors Constructor Description SequenceNumberGenerator()
 - 
Method SummaryAll 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- 
MAXTOKENVALUEpublic static final double MAXTOKENVALUE Specify the max token value.- See Also:
- Constant Field Values
 
 - 
MAXSUBREQUESTIDpublic static final int MAXSUBREQUESTID Specify the max sub request ID.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getCurrentTokenpublic 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
 
 - 
getCurrentFSSHTTPBSubRequestIDpublic 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
 
 - 
GetCurrentSerialNumberpublic 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.
 
 
- 
 
-