public class GrpcHeaderHandler extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
GrpcHeaderHandler.StubAndResponseMetadata<Stub extends io.grpc.stub.AbstractStub<Stub>>
Class that contains the GRPC stub and any RemoteExecutionMetadata returned in the GRPC
response.
|
Modifier and Type | Method and Description |
---|---|
static <Stub extends io.grpc.stub.AbstractStub<Stub>> |
wrapStubToReceiveMetadata(Stub grpcStub)
Receives RemoteExecutionMetadata from the initial GRPC headers.
|
static <Stub extends io.grpc.stub.AbstractStub<Stub>> |
wrapStubToSendAndReceiveMetadata(Stub grpcStub,
com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata metadataToSend)
Convenience function to wrap the GRPC Stub for both receiving and sending metadata.
|
static <Stub extends io.grpc.stub.AbstractStub<Stub>> |
wrapStubToSendMetadata(Stub grpcStub,
com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata metadata)
Appends RemoteExecutionMetadata to the GRPC headers.
|
public static <Stub extends io.grpc.stub.AbstractStub<Stub>> GrpcHeaderHandler.StubAndResponseMetadata<Stub> wrapStubToSendAndReceiveMetadata(Stub grpcStub, com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata metadataToSend)
public static <Stub extends io.grpc.stub.AbstractStub<Stub>> Stub wrapStubToSendMetadata(Stub grpcStub, com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata metadata)
public static <Stub extends io.grpc.stub.AbstractStub<Stub>> GrpcHeaderHandler.StubAndResponseMetadata<Stub> wrapStubToReceiveMetadata(Stub grpcStub)