Uses of Class
io.grpc.Metadata
-
Packages that use Metadata Package Description io.grpc The gRPC core public API.io.grpc.stub API for the Stub layer.me.dinowernli.grpc.prometheus -
-
Uses of Metadata in io.grpc
Methods in io.grpc that return Metadata Modifier and Type Method Description abstract MetadataLoadBalancer.PickSubchannelArgs. getHeaders()Headers of the call.MetadataStatusException. getTrailers()Returns the received trailers.MetadataStatusRuntimeException. getTrailers()Returns the received trailers.static MetadataInternalMetadata. newMetadata(byte[]... binaryValues)static MetadataInternalMetadata. newMetadata(int usedNames, byte[]... binaryValues)static MetadataInternalMetadata. newMetadataWithParsedValues(int usedNames, java.lang.Object[] namesAndValues)Creates a newMetadatainstance from serialized data, with some values pre-parsed.static MetadataStatus. trailersFromThrowable(java.lang.Throwable t)Extract an error trailers from the causal chain of aThrowable.Methods in io.grpc with parameters of type Metadata Modifier and Type Method Description abstract voidCallCredentials.MetadataApplier. apply(Metadata headers)Called when headers are successfully generated.StatusExceptionStatus. asException(Metadata trailers)Same asStatus.asException()but includes the provided trailers in the returned exception.StatusRuntimeExceptionStatus. asRuntimeException(Metadata trailers)Same asStatus.asRuntimeException()but includes the provided trailers in the returned exception.protected abstract voidClientInterceptors.CheckedForwardingClientCall. checkedStart(ClientCall.Listener<RespT> responseListener, Metadata headers)Subclasses implement the start logic here that would normally belong tostart().abstract voidServerCall. close(Status status, Metadata trailers)Close the call with the provided status.static intInternalMetadata. headerCount(Metadata md)voidClientStreamTracer. inboundTrailers(Metadata trailers)Trailing metadata has been received from the server.static <ReqT,RespT>
ServerCall.Listener<ReqT>Contexts. interceptCall(Context context, ServerCall<ReqT,RespT> call, Metadata headers, ServerCallHandler<ReqT,RespT> next)Make the providedContextContext.current()for the creation of a listener to a received call and for all events received by that listener.<ReqT,RespT>
ServerCall.Listener<ReqT>ServerInterceptor. interceptCall(ServerCall<ReqT,RespT> call, Metadata headers, ServerCallHandler<ReqT,RespT> next)voidMetadata. merge(Metadata other)Perform a simple merge of two sets of metadata.voidMetadata. merge(Metadata other, java.util.Set<Metadata.Key<?>> keys)Merge values from the given set of keys into this set of metadata.ClientStreamTracerClientStreamTracer.Factory. newClientStreamTracer(CallOptions callOptions, Metadata headers)ClientStreamTracerClientStreamTracer.Factory. newClientStreamTracer(ClientStreamTracer.StreamInfo info, Metadata headers)Creates aClientStreamTracerfor a new client stream.abstract ServerStreamTracerServerStreamTracer.Factory. newServerStreamTracer(java.lang.String fullMethodName, Metadata headers)Creates aServerStreamTracerfor a new server stream.voidClientCall.Listener. onClose(Status status, Metadata trailers)The ClientCall has been closed.voidClientCall.Listener. onHeaders(Metadata headers)The response headers have been received.abstract voidServerCall. sendHeaders(Metadata headers)Send response header metadata prior to sending a response message.static byte[][]InternalMetadata. serialize(Metadata md)static java.lang.Object[]InternalMetadata. serializePartial(Metadata md)Serializes all metadata entries, leaving some values asInputStreams.abstract voidClientCall. start(ClientCall.Listener<RespT> responseListener, Metadata headers)Start a call, usingresponseListenerfor processing response messages.voidClientInterceptors.CheckedForwardingClientCall. start(ClientCall.Listener<RespT> responseListener, Metadata headers)voidForwardingClientCall. start(ClientCall.Listener<RespT> responseListener, Metadata headers)ServerCall.Listener<RequestT>ServerCallHandler. startCall(ServerCall<RequestT,ResponseT> call, Metadata headers)Produce a non-nulllistener for the incoming call.Constructors in io.grpc with parameters of type Metadata Constructor Description StatusException(Status status, Metadata trailers)Constructs an exception with both a status and trailers.StatusRuntimeException(Status status, Metadata trailers)Constructs the exception with both a status and trailers. -
Uses of Metadata in io.grpc.stub
Methods in io.grpc.stub with parameters of type Metadata Modifier and Type Method Description static <T extends AbstractStub<T>>
TMetadataUtils. attachHeaders(T stub, Metadata extraHeaders)Attaches a set of request headers to a stub.static ClientInterceptorMetadataUtils. newAttachHeadersInterceptor(Metadata extraHeaders)Returns a client interceptor that attaches a set of headers to requests.Method parameters in io.grpc.stub with type arguments of type Metadata Modifier and Type Method Description static <T extends AbstractStub<T>>
TMetadataUtils. captureMetadata(T stub, java.util.concurrent.atomic.AtomicReference<Metadata> headersCapture, java.util.concurrent.atomic.AtomicReference<Metadata> trailersCapture)Captures the last received metadata for a stub.static ClientInterceptorMetadataUtils. newCaptureMetadataInterceptor(java.util.concurrent.atomic.AtomicReference<Metadata> headersCapture, java.util.concurrent.atomic.AtomicReference<Metadata> trailersCapture)Captures the last received metadata on a channel. -
Uses of Metadata in me.dinowernli.grpc.prometheus
Methods in me.dinowernli.grpc.prometheus with parameters of type Metadata Modifier and Type Method Description <R,S>
ServerCall.Listener<R>MonitoringServerInterceptor. interceptCall(ServerCall<R,S> call, Metadata requestMetadata, ServerCallHandler<R,S> next)
-