Deprecated API
Contents
-
InterfaceDescriptionUse
StreamDecoder
instead.UseStreamDecoderFactory
instead.UseGoogleGrpcExceptionHandlerFunction
instead.UseGrpcExceptionHandlerFunction
instead.UseResponseEntity
instead.UseGraphQL.Builder
directly.
-
ClassDescriptionUse
ClientAuthentication
instead.UseGrpcWebTrailers
instead.UsePrometheusMeterRegistries
inarmeria-prometheus1
module instead.UsePrometheusExpositionService
inarmeria-prometheus1
module instead.UsePrometheusExpositionServiceBuilder
inarmeria-prometheus1
module instead.
-
Enum ClassDescriptionUse
LoggingService
or log exceptions usingServerBuilder.errorHandler(ServerErrorHandler)
instead.
-
FieldDescriptionIt'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_JSON
if the client can recognize the media type.UseThriftProtocolFactories.binary(int, int)
instead.
-
MethodDescriptionUse
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.UseFlagsProvider
SPI 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)
com.linecorp.armeria.client.logging.LoggingClientBuilder.responseLogLevel(HttpStatusClass, LogLevel) 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.UseClientAuthentication.ofAuthorization(String, String)
instead.UseClientAuthentication.ofBasic(String)
} instead.useAuthToken.ofOAuth2(String)
instead.UseCookie.secureBuilder(String, String)
instead to create a secureCookie
.UseCookie.ofSecure(String, String)
instead to create a secureCookie
.UseLoggingService
or log exceptions usingServerBuilder.errorHandler(ServerErrorHandler)
.UseFlags.transportType()
and-Dcom.linecorp.armeria.transportType=epoll
.UseFlags.tlsEngineType()
and-Dcom.linecorp.armeria.tlsEngineType=openssl
.UseFlags.verboseExceptionSampler()
and-Dcom.linecorp.armeria.verboseExceptions=<specification>
.UseFlagsProvider.tlsEngineType()
and-Dcom.linecorp.armeria.tlsEngineType=openssl
.com.linecorp.armeria.common.HttpResponse.aggregateWithPooledObjects(EventExecutor, ByteBufAllocator) UseLogFormatter
to set the sanitizer.UseLogWriterBuilder.failureResponseLogLevel(LogLevel)
instead.UseLogFormatter
to set the sanitizer.UseLogWriterBuilder.logger(String)
instead.UseLogWriterBuilder.logger(Logger)
instead.Deprecated for removal in the next major version.UseLogFormatter
to set the sanitizer.Deprecated for removal in the next major version.UseLogFormatter
to set the sanitizer.UseLogWriterBuilder.requestLogLevel(LogLevel)
instead.UseLogWriterBuilder.requestLogLevel(Class, LogLevel)
instead.Deprecated for removal in the next major version.Deprecated for removal in the next major version.UseLogFormatter
to set the sanitizer.UseLogWriterBuilder.responseCauseFilter(BiPredicate)
instead.Deprecated for removal in the next major version.UseLogWriterBuilder.responseCauseFilter(BiPredicate)
instead.Deprecated for removal in the next major version.UseLogFormatter
to set the sanitizer.Deprecated for removal in the next major version.UseLogFormatter
to set the sanitizer.UseLogWriterBuilder.responseLogLevel(Class, LogLevel)
instead.Deprecated for removal in the next major version.Deprecated for removal in the next major version.UseLogFormatter
to 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.UseStreamMessage.builder(Path)
withAbstractByteStreamMessageBuilder.bufferSize(int)
UseStreamMessage.builder(Path)
withPathStreamMessageBuilder.alloc(ByteBufAllocator)
andAbstractByteStreamMessageBuilder.bufferSize(int)
.UseStreamMessage.builder(Path)
withAbstractByteStreamMessageBuilder.executor(ExecutorService)
,PathStreamMessageBuilder.alloc(ByteBufAllocator)
andAbstractByteStreamMessageBuilder.bufferSize(int)
This method has been deprecated without a replacement since it cannot reliably work with custom protocol factories.UseCorsPolicy.originPredicate()
to check if an origin is allowed.@deprecated UseCorsPolicy.originPredicate()
to check if an origin is allowed.UseGraphqlServiceBuilder.dataLoaderRegistry(Function)
instead.UseGraphqlServiceBuilder.dataLoaderRegistry(Function)
instead.UseGraphQL.Builder
directly.UseGraphQL.Builder
directly.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can specify aInstrumentation
toGraphQL.Builder.instrumentation(Instrumentation)
.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can specify aInstrumentation
toGraphQL.Builder.instrumentation(Instrumentation)
.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can specify aRuntimeWiringConfigurator
toSchemaGenerator.makeExecutableSchema(TypeDefinitionRegistry, RuntimeWiring)
when creating aGraphQLSchema
. Then, set it to aGraphQL.Builder
.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can specify aRuntimeWiringConfigurator
toSchemaGenerator.makeExecutableSchema(TypeDefinitionRegistry, RuntimeWiring)
when creating aGraphQLSchema
. Then, set it to aGraphQL.Builder
.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can create aTypeDefinitionRegistry
usingSchemaParser
, and then createGraphQLSchema
using aSchemaGenerator
. Then, set it to aGraphQL.Builder
.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can create aTypeDefinitionRegistry
usingSchemaParser
, and then createGraphQLSchema
using aSchemaGenerator
. Then, set it to aGraphQL.Builder
.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can create aTypeDefinitionRegistry
usingSchemaParser
, and then createGraphQLSchema
using aSchemaGenerator
. Then, set it to aGraphQL.Builder
.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can create aTypeDefinitionRegistry
usingSchemaParser
, and then createGraphQLSchema
using aSchemaGenerator
. Then, set it to aGraphQL.Builder
.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can transform aGraphQLSchema
usingSchemaTransformer.transformSchema(GraphQLSchema, GraphQLTypeVisitor)
. Then, set it to aGraphQL.Builder
.UseGraphqlServiceBuilder.graphql(GraphQL)
instead. You can transform aGraphQLSchema
usingSchemaTransformer.transformSchema(GraphQLSchema, GraphQLTypeVisitor)
. Then, set it to aGraphQL.Builder
.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 specifySamlEndpoint
when 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.UseServerBuilder.withVirtualHost(String, Consumer)
instead.UseServerConfig.findVirtualHost(String, int)
instead.This method is not used anymore. TheblockingTaskExecutor
is shut down if theshutdownOnStop
ofServerBuilder.blockingTaskExecutor(BlockingTaskExecutor, boolean)
is set totrue
.This method will be hidden from public API. TheEventLoopGroup
is shut down if theshutdownOnStop
ofServerBuilder.workerGroup(EventLoopGroup, boolean)
is set totrue
.UseServiceConfig.defaultServiceNaming()
instead.This method is not used anymore. TheAccessLogWriter
is shut down if theshutdownOnStop
ofServiceConfigSetters.accessLogWriter(AccessLogWriter, boolean)
is set totrue
.This method is not used anymore. TheblockingTaskExecutor
is shut down if theshutdownOnStop
ofServiceConfigSetters.blockingTaskExecutor(ScheduledExecutorService, boolean)
is set totrue
.UseServiceRequestContext.whenRequestCancelled()
instead.UseServiceRequestContext.whenRequestCancelling()
instead.This method is not used anymore. TheAccessLogWriter
is shut down if theshutdownOnStop
ofVirtualHostBuilder.accessLogWriter(AccessLogWriter, boolean)
is set totrue
.This method is not used anymore. TheblockingTaskExecutor
is shut down if theshutdownOnStop
ofVirtualHostBuilder.blockingTaskExecutor(ScheduledExecutorService, boolean)
is set totrue
.prefer specifying the hostnamePattern usingServerBuilder.virtualHost(String)
orServerBuilder.withVirtualHost(String, Consumer)
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.
-
ConstructorDescriptionPrefer 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 registeredExceptionHandlerFunction
s will be applied automatically. UseObservableResponseConverterFunction(ResponseConverterFunction)
instead.The registeredExceptionHandlerFunction
s will be applied automatically. UseObservableResponseConverterFunction(ResponseConverterFunction)
instead.
-
Annotation Interface ElementDescription