c

org.apache.pekko.http.scaladsl.common

JsonEntityStreamingSupport

final class JsonEntityStreamingSupport extends javadsl.common.JsonEntityStreamingSupport

Source
JsonEntityStreamingSupport.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonEntityStreamingSupport
  2. JsonEntityStreamingSupport
  3. EntityStreamingSupport
  4. EntityStreamingSupport
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsonEntityStreamingSupport(maxObjectSize: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JsonEntityStreamingSupport toany2stringadd[JsonEntityStreamingSupport] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (JsonEntityStreamingSupport, B)
    Implicit
    This member is added by an implicit conversion from JsonEntityStreamingSupport toArrowAssoc[JsonEntityStreamingSupport] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. val contentType: ContentType

    Write-side, defines what Content-Type the Marshaller should offer and the final Content-Type of the response.

    Write-side, defines what Content-Type the Marshaller should offer and the final Content-Type of the response.

    Definition Classes
    JsonEntityStreamingSupportEntityStreamingSupportEntityStreamingSupport
  9. def ensuring(cond: (JsonEntityStreamingSupport) => Boolean, msg: => Any): JsonEntityStreamingSupport
    Implicit
    This member is added by an implicit conversion from JsonEntityStreamingSupport toEnsuring[JsonEntityStreamingSupport] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (JsonEntityStreamingSupport) => Boolean): JsonEntityStreamingSupport
    Implicit
    This member is added by an implicit conversion from JsonEntityStreamingSupport toEnsuring[JsonEntityStreamingSupport] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: => Any): JsonEntityStreamingSupport
    Implicit
    This member is added by an implicit conversion from JsonEntityStreamingSupport toEnsuring[JsonEntityStreamingSupport] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): JsonEntityStreamingSupport
    Implicit
    This member is added by an implicit conversion from JsonEntityStreamingSupport toEnsuring[JsonEntityStreamingSupport] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. val framingDecoder: Flow[ByteString, ByteString, NotUsed]

    Read-side, decode incoming framed entity.

    Read-side, decode incoming framed entity. For example with an incoming JSON array, chunk it up into JSON objects contained within that array.

    Definition Classes
    JsonEntityStreamingSupportEntityStreamingSupport
  17. val framingRenderer: Flow[ByteString, ByteString, NotUsed]

    Write-side, apply framing to outgoing entity stream.

    Write-side, apply framing to outgoing entity stream.

    Most typical usage will be a variant of Flow[ByteString].intersperse.

    For example for rendering a JSON array one would return Flow[ByteString].intersperse(ByteString("["), ByteString(","), ByteString("]")) and for rendering a new-line separated CSV simply Flow[ByteString].intersperse(ByteString("\n")).

    Definition Classes
    JsonEntityStreamingSupportEntityStreamingSupport
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def getFramingDecoder: Flow[ByteString, ByteString, NotUsed]

    Read-side, decode incoming framed entity.

    Read-side, decode incoming framed entity. For example with an incoming JSON array, chunk it up into JSON objects contained within that array.

    Definition Classes
    EntityStreamingSupportEntityStreamingSupport
  20. final def getFramingRenderer: Flow[ByteString, ByteString, NotUsed]

    Write-side, apply framing to outgoing entity stream.

    Write-side, apply framing to outgoing entity stream.

    Most typical usage will be a variant of Flow[ByteString].intersperse.

    For example for rendering a JSON array one would return Flow[ByteString].intersperse(ByteString("["), ByteString(","), ByteString("]")) and for rendering a new-line separated CSV simply Flow[ByteString].intersperse(ByteString("\n")).

    Definition Classes
    EntityStreamingSupportEntityStreamingSupport
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. val parallelism: Int

    Write-side / read-side, defines if (un)marshalling should be done in parallel.

    Write-side / read-side, defines if (un)marshalling should be done in parallel.

    This may be beneficial marshalling the bottleneck in the pipeline.

    See also parallelism and withParallelMarshalling.

    Definition Classes
    JsonEntityStreamingSupportEntityStreamingSupportEntityStreamingSupport
  27. val supported: ContentTypeRange

    Read-side, what content types it is able to frame and unmarshall.

    Read-side, what content types it is able to frame and unmarshall.

    Definition Classes
    JsonEntityStreamingSupportEntityStreamingSupportEntityStreamingSupport
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    JsonEntityStreamingSupport → AnyRef → Any
  30. val unordered: Boolean

    Write-side / read-side, defines if (un)marshalling should preserve ordering of incoming stream elements.

    Write-side / read-side, defines if (un)marshalling should preserve ordering of incoming stream elements.

    Allowing for parallel and unordered (un)marshalling often yields higher throughput and also allows avoiding head-of-line blocking if some elements are much larger than others.

    See also parallelism and withParallelMarshalling.

    Definition Classes
    JsonEntityStreamingSupportEntityStreamingSupportEntityStreamingSupport
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. def withContentType(ct: ContentType): JsonEntityStreamingSupport

    Write-side, defines what Content-Type the Marshaller should offer and the final Content-Type of the response.

    Write-side, defines what Content-Type the Marshaller should offer and the final Content-Type of the response.

    EntityStreamingSupport traits MUST support re-configuring the offered ContentType. This is due to the need integrating with existing systems which sometimes expect custom Content-Types, however really are just plain JSON or something else internally (perhaps with slight extensions).

    NOTE: Implementations should specialize the return type to their own Type!

    Definition Classes
    JsonEntityStreamingSupportEntityStreamingSupportEntityStreamingSupport
  35. def withFramingRenderer(framingRendererFlow: Flow[ByteString, ByteString, NotUsed]): JsonEntityStreamingSupport
  36. def withFramingRendererFlow(framingRendererFlow: Flow[ByteString, ByteString, NotUsed]): JsonEntityStreamingSupport

    Java API: Write-side, apply framing to outgoing entity stream.

    Java API: Write-side, apply framing to outgoing entity stream.

    Most typical usage will be a variant of Flow[ByteString].intersperse.

    For example for rendering a JSON array one would return Flow[ByteString].intersperse(ByteString("["), ByteString(","), ByteString("]")) and for rendering a new-line separated CSV simply Flow[ByteString].intersperse(ByteString("\n")).

    Definition Classes
    JsonEntityStreamingSupportJsonEntityStreamingSupport
  37. def withParallelMarshalling(parallelism: Int, unordered: Boolean): JsonEntityStreamingSupport

    Write-side / read-side, defines parallelism and if ordering should be preserved or not of Source element marshalling.

    Write-side / read-side, defines parallelism and if ordering should be preserved or not of Source element marshalling.

    Sometimes marshalling multiple elements at once (esp. when elements are not evenly sized, and ordering is not enforced) may yield in higher throughput.

    NOTE: Implementations should specialize the return type to their own Type!

    Definition Classes
    JsonEntityStreamingSupportEntityStreamingSupportEntityStreamingSupport
  38. def withSupported(range: ContentTypeRange): JsonEntityStreamingSupport

    Read-side, allows changing what content types are accepted by this framing.

    Read-side, allows changing what content types are accepted by this framing.

    EntityStreamingSupport traits MUST support re-configuring the accepted ContentTypeRange.

    This is in order to support a-typical APIs which users still want to communicate with using the provided support trait. Typical examples include APIs which return valid application/json however advertise the content type as being application/javascript or vendor specific content types, which still parse correctly as JSON, CSV or something else that a provided support trait is built for.

    NOTE: Implementations should specialize the return type to their own Type!

    Definition Classes
    JsonEntityStreamingSupportEntityStreamingSupportEntityStreamingSupport

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JsonEntityStreamingSupport toStringFormat[JsonEntityStreamingSupport] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (JsonEntityStreamingSupport, B)
    Implicit
    This member is added by an implicit conversion from JsonEntityStreamingSupport toArrowAssoc[JsonEntityStreamingSupport] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from EntityStreamingSupport

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromJsonEntityStreamingSupport to any2stringadd[JsonEntityStreamingSupport]

Inherited by implicit conversion StringFormat fromJsonEntityStreamingSupport to StringFormat[JsonEntityStreamingSupport]

Inherited by implicit conversion Ensuring fromJsonEntityStreamingSupport to Ensuring[JsonEntityStreamingSupport]

Inherited by implicit conversion ArrowAssoc fromJsonEntityStreamingSupport to ArrowAssoc[JsonEntityStreamingSupport]

Ungrouped