Uses of Class
io.grpc.Attributes
Packages that use Attributes
Package
Description
The gRPC core public API.
Interfaces and implementations that are internal to gRPC.
The main transport implementation based on Netty,
for both the client and the server.
Utilities with advanced features in the core layer that user can optionally use.
-
Uses of Attributes in io.grpc
Fields in io.grpc declared as AttributesMethods in io.grpc that return AttributesModifier and TypeMethodDescriptionAttributes.Builder.build()
Build the attributes.ClientCall.getAttributes()
Returns additional properties of the call.EquivalentAddressGroup.getAttributes()
Returns the attributes.LoadBalancer.CreateSubchannelArgs.getAttributes()
Returns the attributes.LoadBalancer.ResolvedAddresses.getAttributes()
Gets the attributes associated with these addresses.abstract Attributes
LoadBalancer.Subchannel.getAttributes()
The same attributes passed toHelper.createSubchannel()
.NameResolver.ResolutionResult.getAttributes()
Gets the attributes associated with the addresses resolved by name resolution.ServerCall.getAttributes()
Returns properties of a single call.abstract Attributes
ServerStreamTracer.ServerCallInfo.getAttributes()
InternalSubchannelAddressAttributes.getConnectedAddressAttributes()
Return attributes of the server address connected by sub channel.LoadBalancer.Subchannel.getConnectedAddressAttributes()
(Internal use only) returns attributes of the address subchannel is connected to.abstract Attributes
CallCredentials.RequestInfo.getTransportAttrs()
Returns the transport attributes.ClientTransportFilter.transportReady
(Attributes transportAttrs) Called when a transport is ready to accept traffic (when a connection has been established).ServerTransportFilter.transportReady
(Attributes transportAttrs) Called when a transport is ready to process streams.Methods in io.grpc with parameters of type AttributesModifier and TypeMethodDescriptionstatic Attributes.Builder
Attributes.newBuilder
(Attributes base) Deprecated.void
NameResolver.Listener.onAddresses
(List<EquivalentAddressGroup> servers, Attributes attributes) Handles updates on resolved addresses and attributes.final void
NameResolver.Listener2.onAddresses
(List<EquivalentAddressGroup> servers, Attributes attributes) Deprecated.This will be removed in 1.22.0Attributes.Builder.setAll
(Attributes other) LoadBalancer.CreateSubchannelArgs.Builder.setAttributes
(Attributes attrs) Attributes provided here will be included inLoadBalancer.Subchannel.getAttributes()
.LoadBalancer.ResolvedAddresses.Builder.setAttributes
(Attributes attributes) Sets the attributes.NameResolver.ResolutionResult.Builder.setAttributes
(Attributes attributes) Sets the attributes for the addresses resolved by name resolution.void
ClientStreamTracer.streamCreated
(Attributes transportAttrs, Metadata headers) The stream is being created on a ready transport.ClientTransportFilter.transportReady
(Attributes transportAttrs) Called when a transport is ready to accept traffic (when a connection has been established).ServerTransportFilter.transportReady
(Attributes transportAttrs) Called when a transport is ready to process streams.void
ClientTransportFilter.transportTerminated
(Attributes transportAttrs) Called when a transport completed shutting down.void
ServerTransportFilter.transportTerminated
(Attributes transportAttrs) Called when a transport is terminated.Constructors in io.grpc with parameters of type AttributesModifierConstructorDescriptionEquivalentAddressGroup
(SocketAddress addr, Attributes attrs) Singleton constructor with Attributes.EquivalentAddressGroup
(List<SocketAddress> addrs, Attributes attrs) List constructor withAttributes
. -
Uses of Attributes in io.grpc.internal
Fields in io.grpc.internal declared as AttributesFields in io.grpc.internal with type parameters of type AttributesModifier and TypeFieldDescriptionstatic final Attributes.Key
<Attributes> GrpcAttributes.ATTR_CLIENT_EAG_ATTRS
Attribute key for the attributes of theEquivalentAddressGroup
(EquivalentAddressGroup.getAttributes()
) that the transport's server address is from.Methods in io.grpc.internal that return AttributesModifier and TypeMethodDescriptiondefault Attributes
ManagedClientTransport.Listener.filterTransport
(Attributes attributes) Called just beforeManagedClientTransport.Listener.transportReady()
to allow direct modification of transport Attributes.AbstractServerStream.getAttributes()
ClientStream.getAttributes()
Attributes that the stream holds at the current moment.ConnectionClientTransport.getAttributes()
Returns a set of attributes, which may vary depending on the state of the transport.final Attributes
DelayedClientCall.getAttributes()
NoopClientStream.getAttributes()
ServerStream.getAttributes()
Attributes describing stream.ClientTransportFactory.ClientTransportOptions.getEagAttributes()
ServerTransportListener.transportReady
(Attributes attributes) The transport has finished all handshakes and is ready to process streams.Methods in io.grpc.internal with parameters of type AttributesModifier and TypeMethodDescriptiondefault Attributes
ManagedClientTransport.Listener.filterTransport
(Attributes attributes) Called just beforeManagedClientTransport.Listener.transportReady()
to allow direct modification of transport Attributes.static StatsTraceContext
StatsTraceContext.newClientContext
(ClientStreamTracer[] tracers, Attributes transportAtts, Metadata headers) Factory method for the client-side.ClientTransportFactory.ClientTransportOptions.setEagAttributes
(Attributes eagAttributes) Sets the non-null EquivalentAddressGroup's attributes.void
ForwardingClientStreamTracer.streamCreated
(Attributes transportAttrs, Metadata headers) ServerTransportListener.transportReady
(Attributes attributes) The transport has finished all handshakes and is ready to process streams. -
Uses of Attributes in io.grpc.netty
Methods in io.grpc.netty that return AttributesModifier and TypeMethodDescriptionstatic Attributes
InternalProtocolNegotiationEvent.getAttributes
(ProtocolNegotiationEvent event) GrpcHttp2ConnectionHandler.getEagAttributes()
Get the attributes of the EquivalentAddressGroup used to create this transport.Methods in io.grpc.netty with parameters of type AttributesModifier and TypeMethodDescriptionNettyChannelBuilder.LocalSocketPicker.createSocketAddress
(SocketAddress remoteAddress, Attributes attrs) Called by gRPC to pick local socket to bind to.static void
InternalNettyServerBuilder.eagAttributes
(NettyServerBuilder builder, Attributes eagAttributes) Sets the EAG attributes available to protocol negotiators.void
GrpcHttp2ConnectionHandler.handleProtocolNegotiationCompleted
(Attributes attrs) Deprecated.Use the two argument method instead.void
GrpcHttp2ConnectionHandler.handleProtocolNegotiationCompleted
(Attributes attrs, InternalChannelz.Security securityInfo) Triggered on protocol negotiation completion.static ProtocolNegotiationEvent
InternalProtocolNegotiationEvent.withAttributes
(ProtocolNegotiationEvent event, Attributes attributes) -
Uses of Attributes in io.grpc.util
Methods in io.grpc.util that return AttributesModifier and TypeMethodDescriptionForwardingSubchannel.getAttributes()
ForwardingSubchannel.getConnectedAddressAttributes()
Methods in io.grpc.util with parameters of type AttributesModifier and TypeMethodDescriptionvoid
ForwardingClientStreamTracer.streamCreated
(Attributes transportAttrs, Metadata headers)
toBuilder()
on theAttributes
instance instead.