org.http4s.blaze.pipeline.stages

SerializingStage

Related Doc: package stages

final class SerializingStage[I] extends PassThrough[I] with Serializer[I]

Linear Supertypes
Serializer[I], ReadSerializer[I], WriteSerializer[I], TailStage[I], PassThrough[I], MidStage[I, I], Head[I], Tail[I], Stage, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SerializingStage
  2. Serializer
  3. ReadSerializer
  4. WriteSerializer
  5. TailStage
  6. PassThrough
  7. MidStage
  8. Head
  9. Tail
  10. Stage
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SerializingStage(name: String = "SerializingStage", maxReadQueue: Int = 0, maxWriteQueue: Int = 0)

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 channelRead(size: Int = 1, timeout: Duration = Duration.Inf): Future[I]

    Definition Classes
    ReadSerializerTail
  6. def channelWrite(data: Seq[I]): Future[Unit]

    Definition Classes
    WriteSerializerTail
  7. def channelWrite(data: I): Future[Unit]

    Definition Classes
    WriteSerializerTail
  8. final def channelWrite(data: Seq[I], timeout: Duration): Future[Unit]

    Definition Classes
    Tail
  9. final def channelWrite(data: I, timeout: Duration): Future[Unit]

    Definition Classes
    Tail
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def findInboundStage[C <: Stage](clazz: Class[C]): Option[C]

    Definition Classes
    Head
  15. final def findInboundStage(name: String): Option[Stage]

    Definition Classes
    Head
  16. final def findOutboundStage[C <: Stage](clazz: Class[C]): Option[C]

    Definition Classes
    Tail
  17. final def findOutboundStage(name: String): Option[Stage]

    Definition Classes
    Tail
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def inboundCommand(cmd: InboundCommand): Unit

    Receives inbound commands Override to capture commands.

    Receives inbound commands Override to capture commands.

    cmd

    a command originating from the channel

    Definition Classes
    HeadStage
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final val logger: Logger

    Attributes
    protected
    Definition Classes
    Stage
  23. val maxReadQueue: Int

    Definition Classes
    SerializingStageReadSerializer
  24. val maxWriteQueue: Int

    Definition Classes
    SerializingStageWriteSerializer
  25. val name: String

    Definition Classes
    SerializingStageStage
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def outboundCommand(cmd: OutboundCommand): Unit

    Receives outbound commands Override to capture commands.

    Receives outbound commands Override to capture commands.

    Definition Classes
    MidStageHead
  30. def readRequest(size: Int): Future[I]

    Definition Classes
    PassThroughHead
  31. final def removeStage(implicit ev: =:=[MidStage[I, I], MidStage[I, I]]): SerializingStage.this.type

    Definition Classes
    MidStage
  32. final def replaceInline(stage: MidStage[I, I]): SerializingStage.this.type

    Definition Classes
    MidStage
  33. final def replaceInline(leafBuilder: LeafBuilder[I], startup: Boolean = true): SerializingStage.this.type

    Definition Classes
    Tail
  34. final def replaceNext(stage: LeafBuilder[I]): Tail[I]

    Definition Classes
    MidStage
  35. final def sendInboundCommand(cmd: InboundCommand): Unit

    Definition Classes
    Head
  36. final def sendOutboundCommand(cmd: OutboundCommand): Unit

    Definition Classes
    Tail
  37. final def spliceAfter(stage: MidStage[I, I]): stage.type

    Definition Classes
    Head
  38. def stageShutdown(): Unit

    Shuts down the stage, deallocating resources, etc.

    Shuts down the stage, deallocating resources, etc.

    This method will be called when the stages receives a Disconnected command unless the inboundCommand method is overridden. It is not impossible that this will not be called due to failure for other stages to propagate shutdown commands. Conversely, it is also possible for this to be called more than once due to the reception of multiple disconnect commands. It is therefor recommended that the method be idempotent.

    Attributes
    protected
    Definition Classes
    Stage
  39. def stageStartup(): Unit

    Start the stage, allocating resources etc.

    Start the stage, allocating resources etc.

    This method should not effect other stages by sending commands etc unless it creates them. It is not impossible that the stage will receive other commands besides Connected before this method is called. It is not impossible for this method to be called multiple times by misbehaving stages. It is therefor recommended that the method be idempotent.

    Attributes
    protected
    Definition Classes
    Stage
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def writeRequest(data: Seq[I]): Future[Unit]

    A simple default that serializes the write requests into the single element form.

    A simple default that serializes the write requests into the single element form. It almost certainly should be overwritten

    data

    sequence of elements which are to be written

    returns

    Future which will resolve when pipeline is ready for more data or fails

    Definition Classes
    PassThroughHead
  46. def writeRequest(data: I): Future[Unit]

    Definition Classes
    PassThroughHead

Inherited from Serializer[I]

Inherited from ReadSerializer[I]

Inherited from WriteSerializer[I]

Inherited from TailStage[I]

Inherited from PassThrough[I]

Inherited from MidStage[I, I]

Inherited from Head[I]

Inherited from Tail[I]

Inherited from Stage

Inherited from AnyRef

Inherited from Any

Ungrouped