Package | Description |
---|---|
io.grpc |
The gRPC core public API.
|
io.grpc.internal |
Interfaces and implementations that are internal to gRPC.
|
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.
|
abstract Attributes |
ServerStreamTracer.ServerCallInfo.getAttributes() |
Attributes |
ServerCall.getAttributes()
Returns properties of a single call.
|
abstract Attributes |
LoadBalancer.Subchannel.getAttributes()
The same attributes passed to
Helper.createSubchannel() . |
Attributes |
EquivalentAddressGroup.getAttributes()
Returns the attributes.
|
Attributes |
ClientCall.getAttributes()
Returns additional properties of the call.
|
abstract Attributes |
ClientStreamTracer.StreamInfo.getTransportAttrs()
Returns the attributes of the transport that this stream was created on.
|
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 |
---|---|
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. |
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.
|
<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 | Field and Description |
---|---|
static Attributes.Key<Attributes> |
GrpcAttributes.ATTR_CLIENT_EAG_ATTRS
Attribute key for the attributes of the
EquivalentAddressGroup (EquivalentAddressGroup.getAttributes() ) that the transport's server address is from. |
Modifier and Type | Method and Description |
---|---|
Attributes |
ServerStream.getAttributes()
Attributes describing stream.
|
Attributes |
NoopClientStream.getAttributes() |
Attributes |
ConnectionClientTransport.getAttributes()
Returns a set of attributes, which may vary depending on the state of the transport.
|
Attributes |
ClientStream.getAttributes()
Attributes that the stream holds at the current moment.
|
Attributes |
AbstractServerStream.getAttributes() |
Attributes |
ClientTransportFactory.ClientTransportOptions.getEagAttributes() |
Attributes |
ServerTransportListener.transportReady(Attributes attributes)
The transport has finished all handshakes and is ready to process streams.
|
Modifier and Type | Method and Description |
---|---|
void |
AutoConfiguredLoadBalancerFactory.AutoConfiguredLoadBalancer.handleResolvedAddressGroups(List<EquivalentAddressGroup> servers,
Attributes attributes) |
static StatsTraceContext |
StatsTraceContext.newClientContext(CallOptions callOptions,
Attributes transportAttrs,
Metadata headers)
Factory method for the client-side.
|
ClientTransportFactory.ClientTransportOptions |
ClientTransportFactory.ClientTransportOptions.setEagAttributes(Attributes eagAttributes)
Sets the non-null EquivalentAddressGroup's attributes.
|
Attributes |
ServerTransportListener.transportReady(Attributes attributes)
The transport has finished all handshakes and is ready to process streams.
|
Modifier and Type | Method and Description |
---|---|
LoadBalancer.Subchannel |
ForwardingLoadBalancerHelper.createSubchannel(List<EquivalentAddressGroup> addrs,
Attributes attrs) |
void |
ForwardingLoadBalancer.handleResolvedAddressGroups(List<EquivalentAddressGroup> servers,
Attributes attributes) |
Copyright © 2019. All rights reserved.