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

Deprecated API

Contents

  • Classes
  • Enums
  • Annotation Types
  • Fields
  • Methods
  • Constructors
  • Deprecated Classes
    Class
    Description
    com.azure.core.http.policy.TimeoutPolicy
    Consider configuring timeouts with HttpClientOptions.
    com.azure.core.http.rest.PagedFluxBase
    use ContinuablePagedFluxCore.
    com.azure.core.util.tracing.TracerProxy
    use TracerProvider
  • Deprecated Enums
    Enum
    Description
    com.azure.core.util.tracing.ProcessKind
    use StartSpanOptions
  • Deprecated Annotation Types
    Annotation Type
    Description
    com.azure.core.annotation.ResumeOperation
    This interface is no longer used, or respected, in code.
  • Deprecated Fields
    Field
    Description
    com.azure.core.util.tracing.Tracer.AZ_TRACING_NAMESPACE_KEY
    Pass Azure Resource Provider Namespace to Tracer factory method TracerProvider.createTracer(String, String, String, TracingOptions)
    com.azure.core.util.tracing.Tracer.DIAGNOSTIC_ID_KEY
    use Tracer.extractContext(Function) and Tracer.injectContext(BiConsumer, Context) for context propagation.
    com.azure.core.util.tracing.Tracer.MESSAGE_ENQUEUED_TIME
    Use StartSpanOptions.addLink(TracingLink) and pass enqueued time as an attribute on link.
    com.azure.core.util.tracing.Tracer.PARENT_SPAN_KEY
    Deprecated in favor of PARENT_TRACE_CONTEXT_KEY, use it to propagate full io.opentelemetry.Context
    com.azure.core.util.tracing.Tracer.SCOPE_KEY
    use Tracer.makeSpanCurrent(Context) instead.
    com.azure.core.util.tracing.Tracer.SPAN_BUILDER_KEY
    use StartSpanOptions.addLink(TracingLink) instead
    com.azure.core.util.tracing.Tracer.USER_SPAN_NAME_KEY
    please pass span name to Tracer.start methods.
  • Deprecated Methods
    Method
    Description
    com.azure.core.http.HttpHeaders.add(String, String)
    Use HttpHeaders.add(HttpHeaderName, String) as it provides better performance.
    com.azure.core.http.HttpHeaders.get(String)
    Use HttpHeaders.get(HttpHeaderName) as it provides better performance.
    com.azure.core.http.HttpHeaders.getValue(String)
    Use HttpHeaders.getValue(HttpHeaderName) as it provides better performance.
    com.azure.core.http.HttpHeaders.getValues(String)
    Use HttpHeaders.getValue(HttpHeaderName) as it provides better performance.
    com.azure.core.http.HttpHeaders.put(String, String)
    Use HttpHeaders.set(HttpHeaderName, String) instead.
    com.azure.core.http.HttpHeaders.remove(String)
    Use HttpHeaders.remove(HttpHeaderName) as it provides better performance.
    com.azure.core.http.HttpHeaders.set(String, String)
    Use HttpHeaders.set(HttpHeaderName, String) as it provides better performance.
    com.azure.core.http.HttpHeaders.set(String, List<String>)
    Use HttpHeaders.set(HttpHeaderName, List) as it provides better performance.
    com.azure.core.http.HttpRequest.setHeader(String, String)
    Use HttpRequest.setHeader(HttpHeaderName, String) instead as is offers better performance.
    com.azure.core.http.HttpResponse.getHeaderValue(String)
    Use HttpResponse.getHeaderValue(HttpHeaderName) as it provides better performance.
    com.azure.core.http.policy.HttpLogOptions.getApplicationId()
    Use ClientOptions to configure applicationId.
    com.azure.core.http.policy.HttpLogOptions.setApplicationId(String)
    Use ClientOptions to configure applicationId.
    com.azure.core.http.rest.Page.getItems()
    use ContinuablePage.getElements().
    com.azure.core.http.rest.PagedFlux.mapPage(Function<T, S>)
    refer the decoration samples for PagedFlux.create(Supplier).
    com.azure.core.http.rest.RequestOptions.addHeader(String, String)
    Use RequestOptions.addHeader(HttpHeaderName, String) as it provides better performance.
    com.azure.core.http.rest.RequestOptions.setHeader(String, String)
    Use RequestOptions.setHeader(HttpHeaderName, String) as it provides better performance.
    com.azure.core.util.Configuration.clone()
    Use ConfigurationBuilder and ConfigurationSource to create configuration.
    com.azure.core.util.Configuration.put(String, String)
    Use ConfigurationBuilder and ConfigurationSource to provide all properties before creating configuration.
    com.azure.core.util.Configuration.remove(String)
    Use ConfigurationBuilder and ConfigurationSource to provide all properties before creating configuration.
    com.azure.core.util.CoreUtils.extractAndFetch(PagedResponse<T>, Context, BiFunction<String, Context, Publisher<T>>)
    Use localized implementation.
    com.azure.core.util.logging.ClientLogger.logThowableAsWarning(T)
    Use ClientLogger.logThrowableAsWarning(Throwable) instead.
    com.azure.core.util.serializer.JacksonAdapter.serializer()
    deprecated to avoid direct ObjectMapper usage in favor of using more resilient and debuggable JacksonAdapter APIs.
    com.azure.core.util.serializer.JacksonAdapter.simpleMapper()
    deprecated, use JacksonAdapter(BiConsumer<ObjectMapper, ObjectMapper>) constructor to configure modules.
    com.azure.core.util.tracing.Tracer.addEvent(String, Map<String, Object>, OffsetDateTime)
    Use Tracer.addEvent(String, Map, OffsetDateTime, Context)
    com.azure.core.util.tracing.Tracer.addLink(Context)
    use StartSpanOptions.addLink(TracingLink) )}
    com.azure.core.util.tracing.Tracer.end(int, Throwable, Context)
    set specific attribute e.g. http_status_code explicitly and use Tracer.end(String, Throwable, Context).
    com.azure.core.util.tracing.Tracer.extractContext(String, Context)
    use Tracer.extractContext(Function)
    com.azure.core.util.tracing.Tracer.getSharedSpanBuilder(String, Context)
    use StartSpanOptions.addLink(TracingLink) instead
    com.azure.core.util.tracing.Tracer.setSpanName(String, Context)
    not needed.
    com.azure.core.util.tracing.Tracer.start(String, Context, ProcessKind)
    use Tracer.start(String, StartSpanOptions, Context) instead.
  • Deprecated Constructors
    Constructor
    Description
    com.azure.core.http.HttpHeaderName()
    Use one of the constants or the HttpHeaderName.fromString(String) factory method.
    com.azure.core.http.policy.UserAgentPolicy(String, String, Configuration, ServiceVersion)
    Use UserAgentPolicy(String, String, String, Configuration) instead.
    com.azure.core.http.rest.StreamResponse(HttpRequest, int, HttpHeaders, Flux<ByteBuffer>)
    Use StreamResponse(HttpResponse)
    com.azure.core.models.CloudEventDataFormat()
    Use one of the constants or the CloudEventDataFormat.fromString(String) factory method.
    com.azure.core.models.GeoObjectType()
    Use one of the constants or the GeoObjectType.fromString(String) factory method.
    com.azure.core.util.Configuration()
    Use ConfigurationBuilder and ConfigurationSource that allow to provide all properties before creating configuration and keep it immutable.
    com.azure.core.util.ExpandableStringEnum()
    Use the ExpandableStringEnum.fromString(String, Class) factory method.
    com.azure.core.util.polling.LongRunningOperationStatus()
    Use one of the constants or the LongRunningOperationStatus.fromString(String, boolean) factory method.
    com.azure.core.util.serializer.JacksonAdapter(BiConsumer<ObjectMapper, ObjectMapper>)
    This API will be removed in the future. Please use JacksonAdapter.createDefaultSerializerAdapter() if you need to use JacksonAdapter.

Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.