Uses of Interface
com.google.apphosting.api.ApiProxy.Environment
Packages that use ApiProxy.Environment
Package
Description
Provides access to the ApiProxy, which dispatches API calls to backend services.
-
Uses of ApiProxy.Environment in com.google.apphosting.api
Classes in com.google.apphosting.api with type parameters of type ApiProxy.EnvironmentModifier and TypeInterfaceDescriptionstatic interfaceApiProxy.Delegate<E extends ApiProxy.Environment>This interface can be used to provide a class that actually implements API calls.Subinterfaces of ApiProxy.Environment in com.google.apphosting.apiModifier and TypeInterfaceDescriptionstatic interfaceA specialization of Environment with call-tracing metadata.Methods in com.google.apphosting.api that return ApiProxy.EnvironmentModifier and TypeMethodDescriptionstatic ApiProxy.EnvironmentApiProxy.getCurrentEnvironment()Gets the environment associated with this thread.ApiProxy.EnvironmentFactory.newEnvironment()Creates a new Environment object to use if no thread local Environment is set.Methods in com.google.apphosting.api with parameters of type ApiProxy.EnvironmentModifier and TypeMethodDescriptionstatic voidCloudTrace.endSpan(ApiProxy.Environment env, CloudTraceContext context, CloudTraceContext parent) Ends the span for the given context.static ApiStatsApiStats.get(ApiProxy.Environment env) For a given environment, return the corresponding ApiStats object.static @Nullable CloudTraceContextCloudTrace.getCurrentContext(ApiProxy.Environment env) Returns the current trace context for the given environment and the current thread.static voidCloudTrace.setCurrentContext(ApiProxy.Environment env, @Nullable CloudTraceContext context) Sets the current trace context for the current environment and the current thread.static voidApiProxy.setEnvironmentForCurrentThread(ApiProxy.Environment environment) Sets an environment for the current thread.static voidCloudTrace.setLabel(ApiProxy.Environment env, CloudTraceContext context, String key, String value) Sets a key:value label on the span for the given context.static @Nullable CloudTraceContextCloudTrace.startChildSpan(ApiProxy.Environment env, CloudTraceContext context, String name) Starts a new span as the child of the given context.Constructors in com.google.apphosting.api with parameters of type ApiProxy.EnvironmentModifierConstructorDescriptionprotectedCreates a new ApiStats object and binds it to a given Environment.Creates a new CloudTrace object and binds it to a given Environment.