| Package | Description |
|---|---|
| io.grpc |
The gRPC core public API.
|
| 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.
|
abstract Attributes |
LoadBalancer.Subchannel.getAttributes()
The same attributes passed to
Helper.createSubchannel(). |
Attributes |
ResolvedServerInfo.getAttributes()
Deprecated.
Returns the associated attributes.
|
Attributes |
ClientCall.getAttributes()
Returns additional properties of the call.
|
Attributes |
ResolvedServerInfoGroup.getAttributes()
Deprecated.
Returns
Attributes for this group. |
Attributes |
ServerCall.getAttributes()
Returns properties of a single call.
|
Attributes |
ForwardingClientCall.getAttributes() |
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)
Pass the credential data to the given
CallCredentials.MetadataApplier, which will propagate it to
the request metadata. |
static ResolvedServerInfoGroup.Builder |
ResolvedServerInfoGroup.builder(Attributes attributes)
Deprecated.
Creates a new builder for a group with extra attributes.
|
abstract LoadBalancer.Subchannel |
LoadBalancer.Helper.createSubchannel(EquivalentAddressGroup addrs,
Attributes attrs)
Creates a Subchannel, which is a logical connection to the given group of addresses which are
considered equivalent.
|
void |
LoadBalancer.handleResolvedAddresses(List<ResolvedServerInfoGroup> servers,
Attributes attributes)
Deprecated.
Implement
LoadBalancer.handleResolvedAddressGroups(java.util.List<io.grpc.EquivalentAddressGroup>, io.grpc.Attributes) instead. As it is deprecated, the
ResolvedServerInfos from the passed-in ResolvedServerInfoGroups
lose all their attributes. |
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)
Create a new builder that is pre-populated with the content from a given container.
|
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.
|
void |
NameResolver.Listener.onUpdate(List<ResolvedServerInfoGroup> servers,
Attributes 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 |
|---|
Builder(Attributes attributes)
Deprecated.
|
EquivalentAddressGroup(List<SocketAddress> addrs,
Attributes attrs)
List constructor with
Attributes. |
EquivalentAddressGroup(SocketAddress addr,
Attributes attrs)
Singleton constructor with Attributes.
|
ResolvedServerInfo(SocketAddress address,
Attributes attributes)
Deprecated.
Constructs a new resolved server with attributes.
|