@Internal
public abstract class BinaryLogProvider
extends io.grpc.BinaryLog
| Modifier and Type | Field and Description |
|---|---|
static io.grpc.MethodDescriptor.Marshaller<byte[]> |
BYTEARRAY_MARSHALLER |
| Constructor and Description |
|---|
BinaryLogProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract io.grpc.ClientInterceptor |
getClientInterceptor(String fullMethodName,
io.grpc.CallOptions callOptions)
Returns a
ClientInterceptor for binary logging. |
protected abstract io.grpc.ServerInterceptor |
getServerInterceptor(String fullMethodName)
Returns a
ServerInterceptor for binary logging. |
io.grpc.Channel |
wrapChannel(io.grpc.Channel channel)
Wraps a channel to provide binary logging on
ClientCalls as needed. |
<ReqT,RespT> |
wrapMethodDefinition(io.grpc.ServerMethodDefinition<ReqT,RespT> oMethodDef)
Wraps a
ServerMethodDefinition such that it performs binary logging if needed. |
public static final io.grpc.MethodDescriptor.Marshaller<byte[]> BYTEARRAY_MARSHALLER
public final io.grpc.Channel wrapChannel(io.grpc.Channel channel)
ClientCalls as needed.wrapChannel in class io.grpc.BinaryLogpublic final <ReqT,RespT> io.grpc.ServerMethodDefinition<?,?> wrapMethodDefinition(io.grpc.ServerMethodDefinition<ReqT,RespT> oMethodDef)
ServerMethodDefinition such that it performs binary logging if needed.wrapMethodDefinition in class io.grpc.BinaryLog@Nullable protected abstract io.grpc.ServerInterceptor getServerInterceptor(String fullMethodName)
ServerInterceptor for 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 always Marshaller<InputStream>.
Returns null if this method is not binary logged.@Nullable protected abstract io.grpc.ClientInterceptor getClientInterceptor(String fullMethodName, io.grpc.CallOptions callOptions)
ClientInterceptor for 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 always Marshaller<InputStream>.
Returns null if this method is not binary logged.public void close()
throws IOException
IOException