Package io.grpc.protobuf.services
Class BinaryLogProvider
- java.lang.Object
-
- io.grpc.BinaryLog
-
- io.grpc.protobuf.services.BinaryLogProvider
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
@Internal public abstract class BinaryLogProvider extends io.grpc.BinaryLog
-
-
Field Summary
Fields Modifier and Type Field Description static io.grpc.MethodDescriptor.Marshaller<byte[]>BYTEARRAY_MARSHALLER
-
Constructor Summary
Constructors Constructor Description BinaryLogProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected abstract io.grpc.ClientInterceptorgetClientInterceptor(java.lang.String fullMethodName, io.grpc.CallOptions callOptions)Returns aClientInterceptorfor binary logging.protected abstract io.grpc.ServerInterceptorgetServerInterceptor(java.lang.String fullMethodName)Returns aServerInterceptorfor binary logging.io.grpc.ChannelwrapChannel(io.grpc.Channel channel)Wraps a channel to provide binary logging onClientCalls as needed.<ReqT,RespT>
io.grpc.ServerMethodDefinition<?,?>wrapMethodDefinition(io.grpc.ServerMethodDefinition<ReqT,RespT> oMethodDef)Wraps aServerMethodDefinitionsuch that it performs binary logging if needed.
-
-
-
Method Detail
-
wrapChannel
public final io.grpc.Channel wrapChannel(io.grpc.Channel channel)
Wraps a channel to provide binary logging onClientCalls as needed.- Specified by:
wrapChannelin classio.grpc.BinaryLog
-
wrapMethodDefinition
public final <ReqT,RespT> io.grpc.ServerMethodDefinition<?,?> wrapMethodDefinition(io.grpc.ServerMethodDefinition<ReqT,RespT> oMethodDef)
Wraps aServerMethodDefinitionsuch that it performs binary logging if needed.- Specified by:
wrapMethodDefinitionin classio.grpc.BinaryLog
-
getServerInterceptor
@Nullable protected abstract io.grpc.ServerInterceptor getServerInterceptor(java.lang.String fullMethodName)
Returns aServerInterceptorfor binary logging. gRPC is free to cache the interceptor, so the interceptor must be reusable across calls. At runtime, the request and response marshallers are alwaysMarshaller<InputStream>. Returnsnullif this method is not binary logged.
-
getClientInterceptor
@Nullable protected abstract io.grpc.ClientInterceptor getClientInterceptor(java.lang.String fullMethodName, io.grpc.CallOptions callOptions)Returns aClientInterceptorfor binary logging. gRPC is free to cache the interceptor, so the interceptor must be reusable across calls. At runtime, the request and response marshallers are alwaysMarshaller<InputStream>. Returnsnullif this method is not binary logged.
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
-