o

zio.elasticsearch

ElasticBackend

object ElasticBackend

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ElasticBackend
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def layer(options: BackendOptions = BackendOptions.Default, customizeRequest: (HttpRequest) => HttpRequest = identity, compressionHandlers: CompressionHandlers[ZioStreams, ZStream[Any, Throwable, Byte]] = HttpClientZioBackend.DefaultCompressionHandlers): TaskLayer[SttpClient]

    An sttp.client4.httpclient.zio.SttpClient tuned for Elasticsearch, offered as an opt-in alternative to HttpClientZioBackend.layer().

    An sttp.client4.httpclient.zio.SttpClient tuned for Elasticsearch, offered as an opt-in alternative to HttpClientZioBackend.layer().

    Unlike HttpClientZioBackend.layer(), the underlying java.net.http.HttpClient runs the work it would otherwise hand off to an executor directly on its selector thread, which saves one thread hop per request. The response body is consumed as a reactive stream that only enqueues data, so completing responses does not block that thread.

    The selector thread does the I/O for all connections, so anything CPU-heavy the client runs there delays every in-flight request. For example, TLS handshakes run their delegated SSLEngine tasks on it. The gain was measured over plain HTTP only, so prefer HttpClientZioBackend.layer() for HTTPS clusters.

    options

    the sttp.client4.BackendOptions used to configure the connection timeout and proxy

    customizeRequest

    a function applied to every java.net.http.HttpRequest before it is sent, for example to add headers or set a request timeout

    compressionHandlers

    the handlers used to compress request bodies and decompress response bodies

    returns

    a layer that provides the sttp.client4.httpclient.zio.SttpClient. As with HttpClientZioBackend.layer(), the underlying java.net.http.HttpClient is not closed when the layer is released.

  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped