T - API request typeU - API response typepublic abstract class RateLimitingRequestExecutor<T extends com.google.api.client.json.GenericJson,U extends com.google.api.client.json.GenericJson> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected GSheetsClient |
gsClient |
protected String |
spreadsheetId |
| Constructor and Description |
|---|
RateLimitingRequestExecutor(GSheetsClient gsClient,
String spreadsheetId,
T request) |
| Modifier and Type | Method and Description |
|---|---|
U |
executeRequest()
Send the batch request, waiting for 1..2..4..8..
MAX_BACKOFF_TIME_SEC seconds,
retrying up to MAX_RETRIES times. |
protected com.google.api.services.sheets.v4.Sheets |
getSheetsClient() |
protected final GSheetsClient gsClient
protected final String spreadsheetId
public RateLimitingRequestExecutor(GSheetsClient gsClient, String spreadsheetId, @Nullable T request)
public U executeRequest() throws GeneralSecurityException, IOException
MAX_BACKOFF_TIME_SEC seconds,
retrying up to MAX_RETRIES times.GeneralSecurityExceptionIOExceptionprotected com.google.api.services.sheets.v4.Sheets getSheetsClient()
throws GeneralSecurityException,
IOException
GeneralSecurityExceptionIOExceptionCopyright © 2025 FG Forrest, a.s.. All rights reserved.