Class SpannerInterceptorProvider (6.25.1)

public class SpannerInterceptorProvider implements GrpcInterceptorProvider

For internal use only. An interceptor provider that provides a list of grpc interceptors for GapicSpannerRpc to handle logging and error augmentation by intercepting grpc calls.

Inheritance

java.lang.Object > SpannerInterceptorProvider

Static Methods

createDefault()

public static SpannerInterceptorProvider createDefault()
Returns
TypeDescription
SpannerInterceptorProvider

Methods

getInterceptors()

public List<ClientInterceptor> getInterceptors()
Returns
TypeDescription
List<io.grpc.ClientInterceptor>

with(ClientInterceptor clientInterceptor)

public SpannerInterceptorProvider with(ClientInterceptor clientInterceptor)
Parameter
NameDescription
clientInterceptorio.grpc.ClientInterceptor
Returns
TypeDescription
SpannerInterceptorProvider