ServerPriorKnowledgeHandshaker

final class ServerPriorKnowledgeHandshaker(localSettings: ImmutableHttp2Settings, flowStrategy: FlowStrategy, nodeBuilder: Int => LeafBuilder[StreamFrame]) extends PriorKnowledgeHandshaker[Unit]
trait TailStage[ByteBuffer]
trait Tail[ByteBuffer]
trait Stage
class Object
trait Matchable
class Any

Value members

Concrete methods

override protected def handlePreface(): Future[ByteBuffer]
Definition Classes
override protected def handshakeComplete(remoteSettings: MutableHttp2Settings, data: ByteBuffer): Future[Unit]
Definition Classes
override protected def stageStartup(): Unit
Definition Classes
Stage

Inherited methods

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

Perform the HTTP/2 prior knowledge handshake

Perform the HTTP/2 prior knowledge handshake

Inherited from
PriorKnowledgeHandshaker
def inboundCommand(cmd: InboundCommand): Unit

Handle basic startup and shutdown commands.

Handle basic startup and shutdown commands.

Value Params
cmd

a command originating from the channel

Inherited from
Stage
override def name: String
Definition Classes
Inherited from
PriorKnowledgeHandshaker
final def replaceTail(leafBuilder: LeafBuilder[ByteBuffer], startup: Boolean): ServerPriorKnowledgeHandshaker

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 spliceBefore(stage: MidStage[ByteBuffer, ByteBuffer]): Unit

Insert the MidStage before this Stage

Insert the MidStage before this Stage

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

Inherited fields

final protected val logger: Logger
Inherited from
Stage

Implicits

Inherited implicits

final implicit protected def ec: ExecutionContext