TimeoutStageBase

abstract class TimeoutStageBase[T](timeout: Duration, exec: TickWheelExecutor) extends MidStage[T, T]
trait MidStage[T, T]
trait Head[T]
trait Tail[T]
trait Stage
class Object
trait Matchable
class Any

Value members

Concrete methods

override def name: String
Definition Classes
override def readRequest(size: Int): Future[T]
Definition Classes
@tailrec
final def setAndCancel(next: Cancelable): Unit
override def writeRequest(data: T): Future[Unit]
Definition Classes
override def writeRequest(data: Seq[T]): Future[Unit]
Definition Classes

Inherited methods

def channelRead(size: Int, timeout: Duration): Future[T]
Inherited from
Tail
final def channelWrite(data: Seq[T], 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

Inherited from
Tail
def channelWrite(data: Seq[T]): Future[Unit]

Write a collection of outbound messages to the pipeline

Write a collection of outbound messages to the pipeline

Inherited from
Tail
final def channelWrite(data: T, 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

Inherited from
Tail
def channelWrite(data: T): Future[Unit]

Write a single outbound message to the pipeline

Write a single outbound message to the pipeline

Inherited from
Tail
final def closePipeline(cause: Option[Throwable]): Unit
Inherited from
Tail
final def findInboundStage[C <: Stage](clazz: Class[C]): Option[C]

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

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

Inherited from
Head
final def findInboundStage(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.

Inherited from
Head
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.

Inherited from
Tail
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.

Inherited from
Tail
override def inboundCommand(cmd: InboundCommand): Unit

Receives inbound commands Override to capture commands.

Receives inbound commands Override to capture commands.

Definition Classes
Inherited from
Head
final def removeStage(implicit ev: MidStage[T, T] =:= MidStage[T, T]): Unit

Remove this MidStage from the pipeline

Remove this MidStage from the pipeline

Inherited from
MidStage
final def replaceInline(stage: MidStage[T, T]): TimeoutStageBase[T]

Replace this MidStage with the provided MidStage of the same type

Replace this MidStage with the provided MidStage of the same type

Inherited from
MidStage
final def replaceNext(stage: LeafBuilder[T], startup: Boolean): Tail[T]

Replace all remaining inbound Stages of the pipeline, not including this Stage.

Replace all remaining inbound Stages of the pipeline, not including this Stage.

Inherited from
Head
final def replaceTail(leafBuilder: LeafBuilder[T], startup: Boolean): TimeoutStageBase[T]

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.

Inherited from
Tail
final def sendInboundCommand(cmd: InboundCommand): Unit

Send a command to the next inbound Stage of the pipeline

Send a command to the next inbound Stage of the pipeline

Inherited from
Head
final def spliceAfter(stage: MidStage[T, T]): Unit

Insert the MidStage after this

Insert the MidStage after this

Inherited from
Head
final def spliceBefore(stage: MidStage[T, T]): Unit

Insert the MidStage before this Stage

Insert the MidStage before this Stage

Inherited from
Tail
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