public class SequenceNumberGenerator extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAXSUBREQUESTID
Specify the max sub request ID.
|
static double |
MAXTOKENVALUE
Specify the max token value.
|
Constructor and Description |
---|
SequenceNumberGenerator() |
Modifier and Type | Method and 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.
|
public static final double MAXTOKENVALUE
public static final int MAXSUBREQUESTID
public static int getCurrentToken() throws TikaException
TikaException
public static int getCurrentFSSHTTPBSubRequestID() throws TikaException
TikaException
public static int GetCurrentSerialNumber()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.