Deprecated API
Contents
-
Deprecated ClassesClassDescriptionUse
new FixedResultPicker(PickResult.withError(error))
instead.Will be deleted whenServerStreamTracer.serverCallStarted(ServerCall)
is removed.UseChannelzService
instead.UseHealthStatusManager
instead.Of questionable utility and generally not used.
-
Deprecated FieldsFieldDescriptionUse the standard Java proxy configuration instead with flags such as: -Dhttps.proxyHost=HOST -Dhttps.proxyPort=PORTUse
new FixedResultPicker(PickResult.withNoResult())
instead.
-
Deprecated MethodsMethodDescriptionuse
Attributes.Key.create(java.lang.String)
instead. This method will be removed in the future.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.UseAttributes.toBuilder()
on theAttributes
instance instead. This method will be removed in the future.UseCallOptions.Key.create(java.lang.String)
orCallOptions.Key.createWithDefault(java.lang.String, T)
instead. This method will be removed.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 byContext.current()
.As of 1.60.0, useForwardingChannelBuilder2
instead.This method will be removed. Stop overriding it. Instead, passLoadBalancer.SubchannelStateListener
toLoadBalancer.Subchannel.start(io.grpc.LoadBalancer.SubchannelStateListener)
to receive Subchannel state updatesWarning has been removedoverrideLoadBalancer.requestConnection()
instead.Most usages should use a globally-registeredNameResolverProvider
instead, with either the SPI mechanism orNameResolverRegistry.register(io.grpc.NameResolverProvider)
. Replacements for all use-cases are not necessarily available yet. See #7133.This will be removed in 1.22.0Will be superseded by setAddressesOrErrorWill be superseded by getAddressesOrErrorUse the two argument method instead.UseNettyChannelBuilder.maxInboundMetadataSize(int)
insteadUseNettyServerBuilder.maxInboundMetadataSize(int)
insteadCallNettyServerBuilder.maxInboundMessageSize(int)
instead. This method will be removed in a future release.ImplementServerStreamTracer.serverCallStarted(ServerCallInfo)
instead. This method will be removed in a future release of gRPC.useCallMetricRecorder.recordRequestCostMetric(java.lang.String, double)
instead. This method will be removed in the future.UseparseLoadBalancingPolicyConfig()
and pass the configuration toLoadBalancer.ResolvedAddresses.Builder.setLoadBalancingPolicyConfig(java.lang.Object)
-
Deprecated Constructors