Top Description Fields Constructors Methods
io.grpc

pack-priv final Class GlobalInterceptors

extends Object
Class Inheritance
Annotations
@Internal
Static Imports
com.google.common.base.Preconditions.checkNotNull

The collection of global interceptors and global server stream tracers.

Field Summary

Modifier and TypeField and Description
private static List<ClientInterceptor>
private static boolean
private static boolean
private static List<ServerInterceptor>
private static List<ServerStreamTracer.Factory>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static synchronized List<ClientInterceptor>
getClientInterceptors()

Returns the list of global ClientInterceptor.

pack-priv static synchronized List<ServerInterceptor>
getServerInterceptors()

Returns list of global ServerInterceptor.

pack-priv static synchronized List<ServerStreamTracer.Factory>
pack-priv static synchronized void
setInterceptorsTracers(List<ClientInterceptor>
list of ClientInterceptor that make up global Client Interceptors.
clientInterceptorList
,
List<ServerInterceptor>
list of ServerInterceptor that make up global Server Interceptors.
serverInterceptorList
,
List<ServerStreamTracer.Factory>
list of ServerStreamTracer.Factory that make up global ServerStreamTracer factories.
serverStreamTracerFactoryList
)

Sets the list of global interceptors and global server stream tracers.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientInterceptorsback to summary
private static List<ClientInterceptor> clientInterceptors
isGlobalInterceptorsTracersGetback to summary
private static boolean isGlobalInterceptorsTracersGet
isGlobalInterceptorsTracersSetback to summary
private static boolean isGlobalInterceptorsTracersSet
serverInterceptorsback to summary
private static List<ServerInterceptor> serverInterceptors
serverStreamTracerFactoriesback to summary
private static List<ServerStreamTracer.Factory> serverStreamTracerFactories

Constructor Detail

GlobalInterceptorsback to summary
private GlobalInterceptors()

Method Detail

getClientInterceptorsback to summary
pack-priv static synchronized List<ClientInterceptor> getClientInterceptors()

Returns the list of global ClientInterceptor. If not set, this returns null.

getServerInterceptorsback to summary
pack-priv static synchronized List<ServerInterceptor> getServerInterceptors()

Returns list of global ServerInterceptor. If not set, this returns null.

getServerStreamTracerFactoriesback to summary
pack-priv static synchronized List<ServerStreamTracer.Factory> getServerStreamTracerFactories()

Returns list of global ServerStreamTracer.Factory. If not set, this returns null.

setInterceptorsTracersback to summary
pack-priv static synchronized void setInterceptorsTracers(List<ClientInterceptor> clientInterceptorList, List<ServerInterceptor> serverInterceptorList, List<ServerStreamTracer.Factory> serverStreamTracerFactoryList)

Sets the list of global interceptors and global server stream tracers.

If setInterceptorsTracers() is called again, this method will throw IllegalStateException.

It is only safe to call early. This method throws IllegalStateException after any of the get calls [getClientInterceptors(), getServerInterceptors() or getServerStreamTracerFactories()] has been called, in order to limit changes to the result of setInterceptorsTracers().

Parameters
clientInterceptorList:List<ClientInterceptor>

list of ClientInterceptor that make up global Client Interceptors.

serverInterceptorList:List<ServerInterceptor>

list of ServerInterceptor that make up global Server Interceptors.

serverStreamTracerFactoryList:List<ServerStreamTracer.Factory>

list of ServerStreamTracer.Factory that make up global ServerStreamTracer factories.