Uses of Class
io.grpc.Attributes
-
Packages that use Attributes Package Description io.grpc The gRPC core public API.io.grpc.netty The main transport implementation based on Netty, for both the client and the server.io.grpc.util 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 Attributes Modifier and Type Field Description static Attributes
Attributes. EMPTY
Methods in io.grpc that return Attributes Modifier and Type Method Description Attributes
Attributes.Builder. build()
Build the attributes.Attributes
ClientCall. getAttributes()
Returns additional properties of the call.Attributes
EquivalentAddressGroup. getAttributes()
Returns the attributes.Attributes
LoadBalancer.CreateSubchannelArgs. getAttributes()
Returns the attributes.Attributes
LoadBalancer.ResolvedAddresses. getAttributes()
Gets the attributes associated with these addresses.abstract Attributes
LoadBalancer.Subchannel. getAttributes()
The same attributes passed toHelper.createSubchannel()
.Attributes
NameResolver.ResolutionResult. getAttributes()
Gets the attributes associated with the addresses resolved by name resolution.Attributes
ServerCall. getAttributes()
Returns properties of a single call.abstract Attributes
ServerStreamTracer.ServerCallInfo. getAttributes()
Attributes
LoadBalancer.Subchannel. getConnectedAddressAttributes()
(Internal use only) returns attributes of the address subchannel is connected to.abstract Attributes
CallCredentials.RequestInfo. getTransportAttrs()
Returns the transport attributes.Attributes
ClientTransportFilter. transportReady(Attributes transportAttrs)
Called when a transport is ready to accept traffic (when a connection has been established).Attributes
ServerTransportFilter. transportReady(Attributes transportAttrs)
Called when a transport is ready to process streams.Methods in io.grpc with parameters of type Attributes Modifier and Type Method Description static Attributes.Builder
Attributes. newBuilder(Attributes base)
Deprecated.UsetoBuilder()
on theAttributes
instance instead.void
NameResolver.Listener. onAddresses(List<EquivalentAddressGroup> servers, Attributes attributes)
Handles updates on resolved addresses and attributes.void
NameResolver.Listener2. onAddresses(List<EquivalentAddressGroup> servers, Attributes attributes)
Deprecated.This will be removed in 1.22.0Attributes.Builder
Attributes.Builder. setAll(Attributes other)
LoadBalancer.CreateSubchannelArgs.Builder
LoadBalancer.CreateSubchannelArgs.Builder. setAttributes(Attributes attrs)
Attributes provided here will be included inLoadBalancer.Subchannel.getAttributes()
.LoadBalancer.ResolvedAddresses.Builder
LoadBalancer.ResolvedAddresses.Builder. setAttributes(Attributes attributes)
Sets the attributes.NameResolver.ResolutionResult.Builder
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.Attributes
ClientTransportFilter. transportReady(Attributes transportAttrs)
Called when a transport is ready to accept traffic (when a connection has been established).Attributes
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 Attributes Constructor Description EquivalentAddressGroup(SocketAddress addr, Attributes attrs)
Singleton constructor with Attributes.EquivalentAddressGroup(List<SocketAddress> addrs, Attributes attrs)
List constructor withAttributes
. -
Uses of Attributes in io.grpc.netty
Methods in io.grpc.netty with parameters of type Attributes Modifier and Type Method Description SocketAddress
NettyChannelBuilder.LocalSocketPicker. createSocketAddress(SocketAddress remoteAddress, Attributes attrs)
Called by gRPC to pick local socket to bind to. -
Uses of Attributes in io.grpc.util
Methods in io.grpc.util that return Attributes Modifier and Type Method Description Attributes
ForwardingSubchannel. getAttributes()
Attributes
ForwardingSubchannel. getConnectedAddressAttributes()
Methods in io.grpc.util with parameters of type Attributes Modifier and Type Method Description void
ForwardingClientStreamTracer. streamCreated(Attributes transportAttrs, Metadata headers)
-