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.
Find the next inbound Stage
of type C
, if it exists.
Find the next outbound Stage
with the given name, if it exists.
Receives inbound commands Override to capture commands.
Replace all remaining inbound Stage
s of the pipeline, not including this Stage
.
Send a command to the next inbound Stage
of the pipeline
Insert the MidStage
after this
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.
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.