Skip navigation links
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Interfaces
  • Classes
  • Enum Classes
  • Fields
  • Methods
  • Constructors
  • Interfaces
    Interface
    Description
    com.linecorp.armeria.client.encoding.StreamDecoder
    Use StreamDecoder instead.
    com.linecorp.armeria.client.encoding.StreamDecoderFactory
    Use StreamDecoderFactory instead.
  • Classes
    Class
    Description
    com.linecorp.armeria.common.grpc.GrpcWebTrailers
    Use GrpcWebTrailers instead.
  • Enum Classes
    Enum Class
    Description
    com.linecorp.armeria.server.annotation.ExceptionVerbosity
    Use LoggingService or log exceptions using ServerBuilder.errorHandler(ServerErrorHandler) instead.
  • Fields
    Field
    Description
    com.linecorp.armeria.client.ClientFactoryOptions.TLS_ALLOW_UNSAFE_CIPHERS
    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.
  • Methods
    Method
    Description
    com.linecorp.armeria.client.AbstractClientOptionsBuilder.auth​(BasicToken)
    Use AbstractClientOptionsBuilder.auth(AuthToken) instead.
    com.linecorp.armeria.client.AbstractClientOptionsBuilder.auth​(OAuth1aToken)
    Use AbstractClientOptionsBuilder.auth(AuthToken) instead.
    com.linecorp.armeria.client.AbstractClientOptionsBuilder.auth​(OAuth2Token)
    Use AbstractClientOptionsBuilder.auth(AuthToken) instead.
    com.linecorp.armeria.client.circuitbreaker.CircuitBreakerClient.newPerHostAndMethodDecorator​(BiFunction<String, String, ? extends CircuitBreaker>, CircuitBreakerRule)
    Use CircuitBreakerClient.newDecorator(CircuitBreakerMapping, CircuitBreakerRule) with CircuitBreakerMapping.perHostAndMethod(BiFunction).
    com.linecorp.armeria.client.circuitbreaker.CircuitBreakerClient.newPerHostAndMethodDecorator​(BiFunction<String, String, ? extends CircuitBreaker>, CircuitBreakerRuleWithContent<HttpResponse>)
    Use CircuitBreakerClient.newDecorator(CircuitBreakerMapping, CircuitBreakerRuleWithContent) with CircuitBreakerMapping.perHostAndMethod(BiFunction).
    com.linecorp.armeria.client.circuitbreaker.CircuitBreakerRpcClient.newPerHostAndMethodDecorator​(BiFunction<String, String, ? extends CircuitBreaker>, CircuitBreakerRuleWithContent<RpcResponse>)
    Use CircuitBreakerRpcClient.newDecorator(CircuitBreakerMapping, CircuitBreakerRuleWithContent) with CircuitBreakerMapping.perHostAndMethod(BiFunction).
    com.linecorp.armeria.client.ClientFactoryBuilder.tlsAllowUnsafeCiphers()
    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.
    com.linecorp.armeria.client.ClientFactoryBuilder.tlsAllowUnsafeCiphers​(boolean)
    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.
    com.linecorp.armeria.client.ClientRequestContext.whenResponseTimedOut()
    Use ClientRequestContext.whenResponseCancelled() instead.
    com.linecorp.armeria.client.ClientRequestContext.whenResponseTimingOut()
    Use ClientRequestContext.whenResponseCancelling() instead.
    com.linecorp.armeria.client.ClientRequestContextWrapper.whenResponseTimedOut()
    com.linecorp.armeria.client.ClientRequestContextWrapper.whenResponseTimingOut()
    com.linecorp.armeria.client.DefaultClientRequestContext.whenResponseTimedOut()
    com.linecorp.armeria.client.DefaultClientRequestContext.whenResponseTimingOut()
    com.linecorp.armeria.client.eureka.EurekaEndpointGroupBuilder.registryFetchIntervalSeconds​(long)
    Use EurekaEndpointGroupBuilder.registryFetchIntervalMillis(long).
    com.linecorp.armeria.client.retry.AbstractRetryingClientBuilder.maxTotalAttempts​(int)
    Use RetryConfigBuilder.maxTotalAttempts(int) instead.
    com.linecorp.armeria.client.retry.AbstractRetryingClientBuilder.responseTimeoutForEachAttempt​(Duration)
    Use RetryConfigBuilder.responseTimeoutForEachAttempt(Duration) instead.
    com.linecorp.armeria.client.retry.AbstractRetryingClientBuilder.responseTimeoutMillisForEachAttempt​(long)
    Use RetryConfigBuilder.responseTimeoutMillisForEachAttempt(long) instead.
    com.linecorp.armeria.client.retry.RetryingClient.newDecorator​(RetryRule, int)
    Use RetryingClient.newDecorator(RetryConfig) instead.
    com.linecorp.armeria.client.retry.RetryingClient.newDecorator​(RetryRule, int, long)
    Use RetryingClient.newDecorator(RetryConfig) instead.
    com.linecorp.armeria.client.retry.RetryingClient.newDecorator​(RetryRuleWithContent<HttpResponse>, int)
    Use RetryingClient.newDecorator(RetryConfig) instead.
    com.linecorp.armeria.client.retry.RetryingClient.newDecorator​(RetryRuleWithContent<HttpResponse>, int, long)
    Use RetryingClient.newDecorator(RetryConfig) instead.
    com.linecorp.armeria.client.retry.RetryingRpcClient.newDecorator​(RetryRuleWithContent<RpcResponse>, int)
    Use RetryingRpcClient.newDecorator(RetryConfig) instead.
    com.linecorp.armeria.client.retry.RetryingRpcClient.newDecorator​(RetryRuleWithContent<RpcResponse>, int, long)
    Use RetryingRpcClient.newDecorator(RetryConfig) instead.
    com.linecorp.armeria.common.auth.BasicToken.of​(String, String)
    use AuthToken.ofBasic(String, String) instead.
    com.linecorp.armeria.common.auth.OAuth1aToken.builder()
    use AuthToken.builderForOAuth1a() instead.
    com.linecorp.armeria.common.auth.OAuth2Token.of​(String)
    use AuthToken.ofOAuth2(String) instead.
    com.linecorp.armeria.common.Flags.annotatedServiceExceptionVerbosity()
    Use LoggingService or log exceptions using ServerBuilder.errorHandler(ServerErrorHandler).
    com.linecorp.armeria.common.Flags.useEpoll()
    Use Flags.transportType() and -Dcom.linecorp.armeria.transportType=epoll.
    com.linecorp.armeria.common.thrift.ThriftProtocolFactories.get​(SerializationFormat)
    Use ThriftSerializationFormats.protocolFactory(SerializationFormat).
    com.linecorp.armeria.common.thrift.ThriftProtocolFactories.toSerializationFormat​(TProtocolFactory)
    This method has been deprecated without a replacement since it cannot reliably work with custom protocol factories.
    com.linecorp.armeria.common.util.EventLoopGroups.datagramChannelType​(EventLoopGroup)
    Use TransportType.datagramChannelType(EventLoopGroup).
    com.linecorp.armeria.common.util.EventLoopGroups.serverChannelType​(EventLoopGroup)
    Use TransportType.serverChannelType(EventLoopGroup).
    com.linecorp.armeria.common.util.EventLoopGroups.socketChannelType​(EventLoopGroup)
    Use TransportType.socketChannelType(EventLoopGroup).
    com.linecorp.armeria.server.DefaultServiceRequestContext.whenRequestTimedOut()
    com.linecorp.armeria.server.DefaultServiceRequestContext.whenRequestTimingOut()
    com.linecorp.armeria.server.eureka.EurekaUpdatingListenerBuilder.leaseDurationSeconds​(int)
    Use EurekaUpdatingListenerBuilder.leaseDurationMillis(long).
    com.linecorp.armeria.server.eureka.EurekaUpdatingListenerBuilder.renewalIntervalSeconds​(int)
    Use EurekaUpdatingListenerBuilder.renewalIntervalMillis(long).
    com.linecorp.armeria.server.grpc.GrpcServiceBuilder.addExceptionMapping​(Class<T>, BiFunction<T, Metadata, Status>)
    Use GrpcServiceBuilder.addExceptionMapping(Class, GrpcStatusFunction) instead.
    com.linecorp.armeria.server.HttpResponseException.of​(int)
    Use HttpStatusException.of(int) instead.
    com.linecorp.armeria.server.HttpResponseException.of​(HttpStatus)
    Use HttpStatusException.of(HttpStatus) instead.
    com.linecorp.armeria.server.Route.apply​(RoutingContext)
    Use Route.apply(RoutingContext, boolean).
    com.linecorp.armeria.server.saml.SamlAssertionConsumerConfigBuilder.endpoint​(SamlEndpoint)
    Use SamlServiceProviderBuilder.acs(SamlEndpoint) to specify SamlEndpoint when creating this SamlAssertionConsumerConfigBuilder.
    com.linecorp.armeria.server.saml.SamlServiceProviderBuilder.acs()
    Use SamlServiceProviderBuilder.acs(SamlEndpoint).
    com.linecorp.armeria.server.ServerBuilder.tlsAllowUnsafeCiphers()
    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.
    com.linecorp.armeria.server.ServerBuilder.tlsAllowUnsafeCiphers​(boolean)
    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.
    com.linecorp.armeria.server.ServerConfig.findVirtualHost​(String)
    Use ServerConfig.findVirtualHost(String, int) instead.
    com.linecorp.armeria.server.ServiceConfig.defaultServiceName()
    Use ServiceConfig.defaultServiceNaming() instead.
    com.linecorp.armeria.server.ServiceRequestContext.whenRequestTimedOut()
    Use ServiceRequestContext.whenRequestCancelled() instead.
    com.linecorp.armeria.server.ServiceRequestContext.whenRequestTimingOut()
    Use ServiceRequestContext.whenRequestCancelling() instead.
    com.linecorp.armeria.server.ServiceRequestContextWrapper.whenRequestTimedOut()
    com.linecorp.armeria.server.ServiceRequestContextWrapper.whenRequestTimingOut()
    com.linecorp.armeria.server.VirtualHostBuilder.tlsAllowUnsafeCiphers()
    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.
    com.linecorp.armeria.server.VirtualHostBuilder.tlsAllowUnsafeCiphers​(boolean)
    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.
  • Constructors
    Constructor
    Description
    com.linecorp.armeria.client.grpc.protocol.UnaryGrpcClient​(WebClient)
    Prefer using a standard client building pattern, e.g.:
    
                 UnaryGrpcClient client =
                     Clients.newClient("gproto+http://127.0.0.1:8080", UnaryGrpcClient.class);
                 
    com.linecorp.armeria.client.grpc.protocol.UnaryGrpcClient​(WebClient, SerializationFormat)
    Prefer using a standard client building pattern, e.g.:
    
                 UnaryGrpcClient client =
                     Clients.newClient("gproto-web+http://127.0.0.1:8080", UnaryGrpcClient.class);
                 
    com.linecorp.armeria.server.metric.PrometheusExpositionService​(CollectorRegistry)
    Use PrometheusExpositionService.of(CollectorRegistry).
    com.linecorp.armeria.server.rxjava2.ObservableResponseConverterFunction​(ResponseConverterFunction, ExceptionHandlerFunction)
    The registered ExceptionHandlerFunctions will be applied automatically. Use ObservableResponseConverterFunction(ResponseConverterFunction) instead.
    com.linecorp.armeria.server.rxjava3.ObservableResponseConverterFunction​(ResponseConverterFunction, ExceptionHandlerFunction)
    The registered ExceptionHandlerFunctions will be applied automatically. Use ObservableResponseConverterFunction(ResponseConverterFunction) instead.

© Copyright 2015–2021 LINE Corporation. All rights reserved.