BaseApiService
Base object encapsulating common functionality for interacting with Google APIs such as setting
credentials, request timeouts, error handling and retry etc.
Inherited Method Summary
From class
com.google.common.util.concurrent.AbstractIdleService
final
void
|
addListener(Service.Listener arg0, Executor arg1)
|
final
void
|
awaitRunning()
|
final
void
|
awaitRunning(long arg0, TimeUnit arg1)
|
final
void
|
awaitTerminated(long arg0, TimeUnit arg1)
|
final
void
|
awaitTerminated()
|
final
Throwable
|
failureCause()
|
final
boolean
|
isRunning()
|
final
Service
|
startAsync()
|
final
Service.State
|
state()
|
final
Service
|
stopAsync()
|
String
|
toString()
|
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
From interface
com.google.common.util.concurrent.Service
abstract
void
|
addListener(Service.Listener arg0, Executor arg1)
|
abstract
void
|
awaitRunning()
|
abstract
void
|
awaitRunning(long arg0, TimeUnit arg1)
|
abstract
void
|
awaitTerminated(long arg0, TimeUnit arg1)
|
abstract
void
|
awaitTerminated()
|
abstract
Throwable
|
failureCause()
|
abstract
boolean
|
isRunning()
|
abstract
Service
|
startAsync()
|
abstract
Service.State
|
state()
|
abstract
Service
|
stopAsync()
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[null,null,["Last updated 2024-09-03 UTC."],[[["`BaseApiService` is an abstract class providing common functionalities for interacting with Google APIs, including credentials, timeouts, error handling, and retries."],["It extends `AbstractIdleService` and offers methods for managing service lifecycles like starting, stopping, and checking the running status."],["Key functionalities include setting credentials, request timeouts, error handling, and retry mechanisms for API interactions."],["Developers can use it as a base for creating specific API service implementations such as content upload, group management, and indexing."],["It includes a nested `AbstractBuilder` class for creating `BaseApiService` instances and a `RetryRequestInitializer` to handle request retries."]]],[]]