object ElasticBackend
- Alphabetic
- By Inheritance
- ElasticBackend
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 underlyingjava.net.http.HttpClientruns 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
SSLEnginetasks on it. The gain was measured over plain HTTP only, so preferHttpClientZioBackend.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.HttpRequestbefore 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 underlyingjava.net.http.HttpClientis not closed when the layer is released.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])