| 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.
|
| Modifier and Type | Field and Description |
|---|---|
static Attributes |
Attributes.EMPTY |
| Modifier and Type | Method and Description |
|---|---|
Attributes |
Attributes.Builder.build()
Build the attributes.
|
Attributes |
ServerCall.getAttributes()
Returns properties of a single call.
|
abstract Attributes |
ServerStreamTracer.ServerCallInfo.getAttributes() |
Attributes |
NameResolver.ResolutionResult.getAttributes()
Gets the attributes associated with the addresses resolved by name resolution.
|
Attributes |
LoadBalancer.ResolvedAddresses.getAttributes()
Gets the attributes associated with these addresses.
|
Attributes |
LoadBalancer.CreateSubchannelArgs.getAttributes()
Returns the attributes.
|
abstract Attributes |
LoadBalancer.Subchannel.getAttributes()
The same attributes passed to
Helper.createSubchannel(). |
Attributes |
ClientCall.getAttributes()
Returns additional properties of the call.
|
Attributes |
EquivalentAddressGroup.getAttributes()
Returns the attributes.
|
abstract Attributes |
CallCredentials.RequestInfo.getTransportAttrs()
Returns the transport attributes.
|
Attributes |
ClientStreamTracer.StreamInfo.getTransportAttrs()
Returns the attributes of the transport that this stream was created on.
|
Attributes |
ServerTransportFilter.transportReady(Attributes transportAttrs)
Called when a transport is ready to process streams.
|
| Modifier and Type | Method and Description |
|---|---|
LoadBalancer.Subchannel |
LoadBalancer.Helper.createSubchannel(EquivalentAddressGroup addrs,
Attributes attrs)
Deprecated.
Use
LoadBalancer.Helper.createSubchannel(io.grpc.LoadBalancer.CreateSubchannelArgs)
instead. Note the new API must be called from the Synchronization Context. |
LoadBalancer.Subchannel |
LoadBalancer.Helper.createSubchannel(List<EquivalentAddressGroup> addrs,
Attributes attrs)
Deprecated.
Use
LoadBalancer.Helper.createSubchannel(io.grpc.LoadBalancer.CreateSubchannelArgs)
instead. Note the new API must be called from the Synchronization Context. |
void |
LoadBalancer.handleResolvedAddressGroups(List<EquivalentAddressGroup> servers,
Attributes attributes)
Deprecated.
override
instead |
static Attributes.Builder |
Attributes.newBuilder(Attributes base)
Deprecated.
Use
toBuilder() on the Attributes instance instead.
This method will be removed in the future. |
NameResolver |
NameResolver.Factory.newNameResolver(URI targetUri,
Attributes params)
Deprecated.
Implement
NameResolver.Factory.newNameResolver(URI, NameResolver.Helper) instead. This is
going to be deleted in a future release. |
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.0
|
Attributes.Builder |
Attributes.Builder.setAll(Attributes other) |
NameResolver.ResolutionResult.Builder |
NameResolver.ResolutionResult.Builder.setAttributes(Attributes attributes)
Sets the attributes for the addresses resolved by name resolution.
|
LoadBalancer.ResolvedAddresses.Builder |
LoadBalancer.ResolvedAddresses.Builder.setAttributes(Attributes attributes)
Sets the attributes.
|
LoadBalancer.CreateSubchannelArgs.Builder |
LoadBalancer.CreateSubchannelArgs.Builder.setAttributes(Attributes attrs)
Attributes provided here will be included in
LoadBalancer.Subchannel.getAttributes(). |
ClientStreamTracer.StreamInfo.Builder |
ClientStreamTracer.StreamInfo.Builder.setTransportAttrs(Attributes transportAttrs)
Sets the attributes of the transport that this stream was created on.
|
Attributes |
ServerTransportFilter.transportReady(Attributes transportAttrs)
Called when a transport is ready to process streams.
|
void |
ServerTransportFilter.transportTerminated(Attributes transportAttrs)
Called when a transport is terminated.
|
| Constructor and Description |
|---|
EquivalentAddressGroup(List<SocketAddress> addrs,
Attributes attrs)
List constructor with
Attributes. |
EquivalentAddressGroup(SocketAddress addr,
Attributes attrs)
Singleton constructor with Attributes.
|
| Modifier and Type | Method and Description |
|---|---|
Attributes |
GrpcHttp2ConnectionHandler.getEagAttributes()
Get the attributes of the EquivalentAddressGroup used to create this transport.
|
| Modifier and Type | Method and Description |
|---|---|
SocketAddress |
NettyChannelBuilder.LocalSocketPicker.createSocketAddress(SocketAddress remoteAddress,
Attributes attrs)
Called by gRPC to pick local socket to bind to.
|
void |
GrpcHttp2ConnectionHandler.handleProtocolNegotiationCompleted(Attributes attrs)
Deprecated.
Use the two argument method instead.
|
void |
GrpcHttp2ConnectionHandler.handleProtocolNegotiationCompleted(Attributes attrs,
io.grpc.InternalChannelz.Security securityInfo)
Triggered on protocol negotiation completion.
|
| Modifier and Type | Method and Description |
|---|---|
Attributes |
ForwardingSubchannel.getAttributes() |
| Modifier and Type | Method and Description |
|---|---|
LoadBalancer.Subchannel |
ForwardingLoadBalancerHelper.createSubchannel(List<EquivalentAddressGroup> addrs,
Attributes attrs)
Deprecated.
|
void |
ForwardingLoadBalancer.handleResolvedAddressGroups(List<EquivalentAddressGroup> servers,
Attributes attributes)
Deprecated.
|