Close the channel with an error NOTE: EOF is a valid error to close the channel with and signals normal termination.
Close the channel with an error NOTE: EOF is a valid error to close the channel with and signals normal termination. This method should not send a Disconnected command.
Called by the next inbound Stage
to signal interest in reading data.
Called by the next inbound Stage
to signal interest in reading data.
Hint as to the size of the message intended to be read. May not be meaningful or honored.
Future
that will resolve with the requested inbound data, or an error.
Data that the next inbound Stage
wants to send outbound.
Data that the next inbound Stage
wants to send outbound.
a Future
that resolves when the data has been handled.
Filter the error, replacing known "EOF" like errors with EOF
Filter the error, replacing known "EOF" like errors with EOF
Find the next inbound Stage
of type C
, if it exists.
Find the next inbound Stage
of type C
, if it exists.
Find the next outbound Stage
with the given name, if it exists.
Find the next outbound Stage
with the given name, if it exists.
Receives inbound commands Override to capture commands.
Receives outbound commands Override to capture commands.
Receives outbound commands Override to capture commands.
Replace all remaining inbound Stage
s of the pipeline, not including this Stage
.
Replace all remaining inbound Stage
s of the pipeline, not including this Stage
.
Send a command to the next inbound Stage
of the pipeline
Send a command to the next inbound Stage
of the pipeline
Insert the MidStage
after this
Insert the MidStage
after this
Shuts down the stage, deallocating resources, etc.
Shuts down the stage, deallocating resources, etc.
This method will be called when the stage receives a
Disconnect command unless the outboundCommand
is
overridden. It will be called when the stage receives a
Disconnected command unless inboundCommand is
overridden. This method should not send either Disconnect
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.
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.
Collection of data that the next inbound Stage
wants to sent outbound.
Collection of data that the next inbound Stage
wants to sent outbound.
It is generally assumed that the order of elements has meaning.
a Future
that resolves when the data has been handled.