Top Deprecated
io.grpc:grpc-api 1.60.1

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

Key object
io.grpc.Attributes.Key.of
(String
a string used to describe the key, used for debugging.
debugString
)

use create instead. This method will be removed in the future.

Returns:

Set of Key objects.
io.grpc.Attributes.keys
()

This method is being considered for removal, if you feel this method is needed please reach out on this Github issue: grpc-java/issues/1764.

io.grpc.Attributes.newBuilder(Attributes base)

Use Attributes#toBuilder() on the Attributes instance instead. This method will be removed in the future.

Returns:

Key object
io.grpc.CallOptions.Key.of
(String
a string used to describe this key, used for debugging.
debugString
,
T
default value to return when value for key not set
defaultValue
)

Use create or createWithDefault instead. This method will be removed.

io.grpc.Context.CancellableContext.isCurrent()

This method violates some GRPC class encapsulation and should not be used. If you must know whether a Context is the current context, check whether it is the same object returned by Context#current().

io.grpc.LoadBalancer.ErrorPicker

Use new FixedResultPicker(PickResult.withError(error)) instead.

io.grpc.LoadBalancer.handleSubchannelState(LoadBalancer.Subchannel
the involved Subchannel
subchannel
,
ConnectivityStateInfo
the new state
stateInfo
)

This method will be removed. Stop overriding it. Instead, pass SubchannelStateListener to Subchannel#start to receive Subchannel state updates

Returns:

this
io.grpc.ManagedChannelBuilder.nameResolverFactory
(NameResolver.Factory resolverFactory)

Most usages should use a globally-registered NameResolverProvider instead, with either the SPI mechanism or NameResolverRegistry#register. Replacements for all use-cases are not necessarily available yet. See #7133.

io.grpc.MethodDescriptor.create(MethodDescriptor.MethodType
the call type of this method
type
,
String
the fully qualified name of this method
fullMethodName
,
MethodDescriptor.Marshaller<RequestT>
the marshaller used to encode and decode requests
requestMarshaller
,
MethodDescriptor.Marshaller<ResponseT>
the marshaller used to encode and decode responses
responseMarshaller
)

use newBuilder().

io.grpc.NameResolver.Listener2.onAddresses(List<EquivalentAddressGroup>
the resolved server addresses. An empty list will trigger onError
servers
,
Attributes
extra information from naming system.
attributes
)

This will be removed in 1.22.0

io.grpc.ServerStreamTracer.ReadOnlyServerCall.create(ServerStreamTracer.ServerCallInfo<ReqT, RespT> callInfo)

Deprecated as a consequence of ServerStreamTracer.ReadOnlyServerCall being deprecated. See corresponding docs for further information.

io.grpc.ServerStreamTracer.serverCallStarted(ServerCall<?, ?> call)

Implement serverCallStarted(ServerCallInfo) instead. This method will be removed in a future release of gRPC.