| 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.okhttp |
A lightweight transport based on
OkHttp, mainly for use on Android
(client-only).
|
| 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 |
EquivalentAddressGroup.getAttributes()
Returns the attributes.
|
Attributes |
ClientCall.getAttributes()
Returns additional properties of the call.
|
Attributes |
ServerCall.getAttributes()
Returns properties of a single call.
|
abstract Attributes |
ServerStreamTracer.ServerCallInfo.getAttributes() |
abstract Attributes |
LoadBalancer.Subchannel.getAttributes()
The same attributes passed to
Helper.createSubchannel(). |
abstract Attributes |
CallCredentials.RequestInfo.getTransportAttrs()
Returns the transport attributes.
|
Attributes |
ServerTransportFilter.transportReady(Attributes transportAttrs)
Called when a transport is ready to process streams.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CallCredentials.applyRequestMetadata(MethodDescriptor<?,?> method,
Attributes attrs,
Executor appExecutor,
CallCredentials.MetadataApplier applier)
Deprecated.
implement
CallCredentials2 instead. |
void |
CallCredentials2.applyRequestMetadata(MethodDescriptor<?,?> method,
Attributes attrs,
Executor appExecutor,
CallCredentials.MetadataApplier applier) |
LoadBalancer.Subchannel |
LoadBalancer.Helper.createSubchannel(EquivalentAddressGroup addrs,
Attributes attrs)
Equivalent to
LoadBalancer.Helper.createSubchannel(List, Attributes) with the given single EquivalentAddressGroup. |
LoadBalancer.Subchannel |
LoadBalancer.Helper.createSubchannel(List<EquivalentAddressGroup> addrs,
Attributes attrs)
Creates a Subchannel, which is a logical connection to the given group of addresses which are
considered equivalent.
|
abstract void |
LoadBalancer.handleResolvedAddressGroups(List<EquivalentAddressGroup> servers,
Attributes attributes)
Handles newly resolved server groups and metadata attributes from name resolution system.
|
static Attributes.Builder |
Attributes.newBuilder(Attributes base)
Deprecated.
Use
toBuilder() on the Attributes instance instead.
This method will be removed in the future. |
abstract NameResolver |
NameResolver.Factory.newNameResolver(URI targetUri,
Attributes params)
Creates a
NameResolver for the given target URI, or null if the given URI
cannot be resolved by this factory. |
void |
NameResolver.Listener.onAddresses(List<EquivalentAddressGroup> servers,
Attributes attributes)
Handles updates on resolved addresses and attributes.
|
<T> Attributes.Builder |
Attributes.Builder.setAll(Attributes other) |
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.
|
protected Attributes |
NettyChannelBuilder.getNameResolverParams() |
| 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 |
|---|---|
protected Attributes |
OkHttpChannelBuilder.getNameResolverParams() |
| Modifier and Type | Method and Description |
|---|---|
LoadBalancer.Subchannel |
ForwardingLoadBalancerHelper.createSubchannel(List<EquivalentAddressGroup> addrs,
Attributes attrs) |
void |
ForwardingLoadBalancer.handleResolvedAddressGroups(List<EquivalentAddressGroup> servers,
Attributes attributes) |