Tail

sealed trait Tail[I] extends Stage
trait Stage
class Object
trait Matchable
class Any
trait MidStage[I, O]
class SSLStage
trait TailStage[I]
class BasicTail[T]

Value members

Concrete methods

def channelRead(size: Int, timeout: Duration): Future[I]
def channelWrite(data: I): Future[Unit]

Write a single outbound message to the pipeline

Write a single outbound message to the pipeline

final def channelWrite(data: I, timeout: Duration): Future[Unit]

Write a single outbound message to the pipeline with a timeout

Write a single outbound message to the pipeline with a timeout

def channelWrite(data: Seq[I]): Future[Unit]

Write a collection of outbound messages to the pipeline

Write a collection of outbound messages to the pipeline

final def channelWrite(data: Seq[I], timeout: Duration): Future[Unit]

Write a collection of outbound messages to the pipeline with a timeout

Write a collection of outbound messages to the pipeline with a timeout

final def closePipeline(cause: Option[Throwable]): Unit
final def findOutboundStage(name: String): Option[Stage]

Find the next outbound Stage with the given name, if it exists.

Find the next outbound Stage with the given name, if it exists.

final def findOutboundStage[C <: Stage](clazz: Class[C]): Option[C]

Find the next outbound Stage of type C, if it exists.

Find the next outbound Stage of type C, if it exists.

final def replaceTail(leafBuilder: LeafBuilder[I], startup: Boolean): Tail[I]

Replace all downstream Stages, including this Stage.

Replace all downstream Stages, including this Stage.

If this was a MidStage, its inbound element is notified via a Disconnected Command.

final def spliceBefore(stage: MidStage[I, I]): Unit

Insert the MidStage before this Stage

Insert the MidStage before this Stage

Inherited methods

Handle basic startup and shutdown commands.

Handle basic startup and shutdown commands.

Value Params
cmd

a command originating from the channel

Inherited from
Stage
def name: String
Inherited from
Stage
protected def stageShutdown(): Unit

Shuts down the stage, deallocating resources, etc.

Shuts down the stage, deallocating resources, etc.

It will be called when the stage receives a Disconnected command unless inboundCommand is overridden. This method should not send or Disconnected commands.

It is possible that this will not be called due to failure of 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 shutdown commands. It is therefore recommended that the method be idempotent.

Inherited from
Stage
protected 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 therefore recommended that the method be idempotent.

Inherited from
Stage

Inherited fields

final protected val logger: Logger
Inherited from
Stage