Package com.google.api.core (2.55.2)

Classes

Class Description
com. google. api. core. Abstract Api Future Abstract implementation of ApiFuture that mirrors AbstractFuture in Guava.
com. google. api. core. Abstract Api Service Base class for ApiService . Similar to Guava's AbstractService but redeclared so that Guava can be shaded.
com. google. api. core. Api Future To Listenable Future INTERNAL USE ONLY. Adapter from ApiFuture to Guava ListenableFuture.
com. google. api. core. Api Futures Static utility methods for the ApiFuture interface.
com. google. api. core. Api Service. Listener A listener for the various state changes that a ApiService goes through in its lifecycle.

All methods are no-ops by default, implementors should override the ones they care about.

com. google. api. core. Current Millis Clock Implementation of the ApiClock interface, which uses System#currentTimeMillis() as time source.
com. google. api. core. Forwarding Api Future
com. google. api. core. Listenable Future To Api Future INTERNAL USE ONLY. Adapter from Guava ListenableFuture to ApiFuture.
com. google. api. core. Nano Clock Default implementation of the ApiClock interface, using call to System.nanoTime().
com. google. api. core. Settable Api Future An ApiFuture whose result can be set. Similar to Guava's SettableFuture , but redeclared so that Guava could be shaded.

Interfaces

Interface Description
com. google. api. core. Api Async Function Transforms a value, possibly asynchronously.

It is similar to Guava's AsyncFunction , redeclared so that Guava can be shaded.

com. google. api. core. Api Clock An interface for getting the current value of a high-resolution time source, in nanoseconds.

Clocks other than NanoClock are typically used only for testing.

com. google. api. core. Api Function Legacy version of Function.

It is similar to Guava's Function , redeclared so that Guava can be shaded.

com. google. api. core. Api Future A Future that can have a listener added.

Similar to Guava's ListenableFuture , but redeclared so that Guava could be shaded.

com. google. api. core. Api Future Callback A callback for accepting the results of an ApiFuture .

It is similar to Guava's FutureCallback , redeclared so that Guava can be shaded.

com. google. api. core. Api Service An object with an operational state, plus asynchronous #startAsync() and #stopAsync() lifecycle methods to transition between states. Example services include webservers, RPC servers and timers.

The normal lifecycle of a service is:

com. google. api. core. Beta Api Indicates a public API that can change at any time, and has no guarantee of API stability and backward-compatibility.

Usage guidelines:

com. google. api. core. Internal Api Annotates a program element (class, method, package etc) which is internal to its containing library, not part of the public API, and should not be used by users of the library.

This annotation only makes sense on APIs that are not private. Its existence is necessary

com. google. api. core. Internal Extension Only Indicates a public API that is stable for callers to use, but has no guarantee of stability for extension. Consequently, the API should only be extended within the package containing the API.

For example:

com. google. api. core. Obsolete Api Indicates a public API is obsolete, and will be deprecated in a future version.

Usage guidelines:

Enums

Enum Description
com. google. api. core. Api Service. State The lifecycle states of a service.

The ordering of the State enum is defined such that if there is a state transition from A -> B then A.compareTo(B) < 0 . N.B. The converse is not true, i.e. if

Design a Mobile Site
View Site in Mobile | Classic
Share by: