Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionUse
StreamDecoderFactoryinstead.UseGoogleGrpcExceptionHandlerFunctioninstead.UseGrpcExceptionHandlerFunctioninstead.
-
Deprecated Classes
-
Deprecated Enum ClassesEnum ClassDescriptionUse
LoggingServiceor log exceptions usingServerBuilder.errorHandler(ServerErrorHandler)instead.
-
Deprecated FieldsFieldDescriptionIt's not recommended to enable this option. Use it only when you have no other way to communicate with an insecure peer than this.Use
MediaType.GRAPHQL_RESPONSE_JSONif the client can recognize the media type.UseThriftProtocolFactories.binary(int, int)instead.
-
Deprecated MethodsMethodDescriptionUse
AbstractClientOptionsBuilder.auth(AuthToken)instead.UseAbstractClientOptionsBuilder.auth(AuthToken)instead.UseAbstractClientOptionsBuilder.auth(AuthToken)instead.RPC decorator cannot be added to the web client builder.RPC decorator cannot be added to the web client builder.UseFlagsProviderSPI to override the defaultMeterRegistry.It's not recommended to enable this option. Use it only when you have no other way to communicate with an insecure peer than this.It's not recommended to enable this option. Use it only when you have no other way to communicate with an insecure peer than this.UseClientRequestContext.whenResponseCancelled()instead.UseClientRequestContext.whenResponseCancelling()instead.UseDnsResolverGroupBuilder.autoRefreshBackoff(Backoff)instead.UseGrpcClientBuilder.pathPrefix(String)instead.UseConcurrencyLimitingClient.newDecorator(ConcurrencyLimit)with the limit created viaConcurrencyLimit.builder(int)UseRetryConfigBuilder.maxTotalAttempts(int)instead.UseRetryingClient.newDecorator(RetryConfig)instead.UseRetryingClient.newDecorator(RetryConfig)instead.UseRetryingClient.newDecorator(RetryConfig)instead.UseRetryingClient.newDecorator(RetryConfig)instead.UseRetryingRpcClient.newDecorator(RetryConfig)instead.UseRetryingRpcClient.newDecorator(RetryConfig)instead.useAuthToken.ofBasic(String, String)instead.useAuthToken.builderForOAuth1a()instead.useAuthToken.ofOAuth2(String)instead.UseCookie.secureBuilder(String, String)instead to create a secureCookie.UseCookie.ofSecure(String, String)instead to create a secureCookie.UseLoggingServiceor log exceptions usingServerBuilder.errorHandler(ServerErrorHandler).UseFlags.transportType()and-Dcom.linecorp.armeria.transportType=epoll.UseFlags.verboseExceptionSampler()and-Dcom.linecorp.armeria.verboseExceptions=<specification>.com.linecorp.armeria.common.HttpResponse.aggregateWithPooledObjects(EventExecutor, ByteBufAllocator) UseLogFormatterto set the sanitizer.UseLogWriterBuilder.failureResponseLogLevel(LogLevel)instead.UseLogFormatterto set the sanitizer.UseLogWriterBuilder.logger(String)instead.UseLogWriterBuilder.logger(Logger)instead.UseLogFormatterto set the sanitizer.UseLogFormatterto set the sanitizer.UseLogWriterBuilder.requestLogLevel(LogLevel)instead.UseLogWriterBuilder.requestLogLevel(Class, LogLevel)instead.UseLogFormatterto set the sanitizer.UseLogWriterBuilder.responseCauseFilter(Predicate)instead.UseLogWriterBuilder.responseCauseFilter(Predicate)instead.UseLogFormatterto set the sanitizer.UseLogFormatterto set the sanitizer.UseLogWriterBuilder.responseLogLevel(Class, LogLevel)instead.UseLogFormatterto set the sanitizer.UseLogFormatter.formatResponse(RequestLog)instead.UseLogFormatter.formatResponse(RequestLog)instead.UseLogFormatter.formatResponse(RequestLog)instead.Do not use this method.Do not use this method.UseLogFormatter.formatRequest(RequestOnlyLog)instead.UseLogFormatter.formatRequest(RequestOnlyLog)instead.UseLogFormatter.formatRequest(RequestOnlyLog)instead.Do not use this method.Do not use this method.UseAbstractUnwrappable.unwrap()instead.This method has been deprecated without a replacement since it cannot reliably work with custom protocol factories.UseGraphqlServiceBuilder.dataLoaderRegistry(Function)instead.UseGraphqlServiceBuilder.dataLoaderRegistry(Function)instead.UseGrpcServiceBuilder.maxRequestMessageLength(int)instead.UseGrpcServiceBuilder.maxResponseMessageLength(int)instead.UseHttpStatusException.of(int)instead.UseHttpStatusException.of(HttpStatus)instead.com.linecorp.armeria.server.jetty.AbstractJettyServiceBuilder.configurator(Consumer<? super Server>) UseSamlServiceProviderBuilder.acs(SamlEndpoint)to specifySamlEndpointwhen creating thisSamlAssertionConsumerConfigBuilder.It's not recommended to enable this option. Use it only when you have no other way to communicate with an insecure peer than this.It's not recommended to enable this option. Use it only when you have no other way to communicate with an insecure peer than this.UseServerConfig.findVirtualHost(String, int)instead.This method is not used anymore. TheblockingTaskExecutoris shut down if theshutdownOnStopofServerBuilder.blockingTaskExecutor(BlockingTaskExecutor, boolean)is set totrue.This method will be hidden from public API. TheEventLoopGroupis shut down if theshutdownOnStopofServerBuilder.workerGroup(EventLoopGroup, boolean)is set totrue.UseServiceConfig.defaultServiceNaming()instead.This method is not used anymore. TheAccessLogWriteris shut down if theshutdownOnStopofServiceBindingBuilder.accessLogWriter(AccessLogWriter, boolean)is set totrue.This method is not used anymore. TheblockingTaskExecutoris shut down if theshutdownOnStopofServiceBindingBuilder.blockingTaskExecutor(ScheduledExecutorService, boolean)is set totrue.UseServiceRequestContext.whenRequestCancelled()instead.UseServiceRequestContext.whenRequestCancelling()instead.This method is not used anymore. TheAccessLogWriteris shut down if theshutdownOnStopofVirtualHostBuilder.accessLogWriter(AccessLogWriter, boolean)is set totrue.This method is not used anymore. TheblockingTaskExecutoris shut down if theshutdownOnStopofVirtualHostBuilder.blockingTaskExecutor(ScheduledExecutorService, boolean)is set totrue.It's not recommended to enable this option. Use it only when you have no other way to communicate with an insecure peer than this.It's not recommended to enable this option. Use it only when you have no other way to communicate with an insecure peer than this.UseArmeriaSettings.Port.getAddress()instead.UseArmeriaSettings.Port.setAddress(InetAddress)instead.
-
Deprecated ConstructorsConstructorDescriptionPrefer using a standard client building pattern, e.g.:
UnaryGrpcClient client = Clients.newClient("gproto+http://127.0.0.1:8080", UnaryGrpcClient.class);Prefer using a standard client building pattern, e.g.:UnaryGrpcClient client = Clients.newClient("gproto-web+http://127.0.0.1:8080", UnaryGrpcClient.class);UseStreamMessage.streaming()instead.The registeredExceptionHandlerFunctions will be applied automatically. UseObservableResponseConverterFunction(ResponseConverterFunction)instead.The registeredExceptionHandlerFunctions will be applied automatically. UseObservableResponseConverterFunction(ResponseConverterFunction)instead.
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescription
StreamDecoderinstead.