Stage.Builder<DATA>, Stage.Continuation<DATA>
Modifier and Type | Field and Description |
---|---|
private Stage<DATA> |
nextStage |
private java.util.function.Function<DATA,DATA> |
transformation |
Constructor and Description |
---|
LinkedStage(java.util.function.Function<DATA,DATA> transformation)
Create a new terminal stage .
|
LinkedStage(java.util.function.Function<DATA,DATA> transformation,
Stage<DATA> nextStage)
Create a new stage that will return the supplied stage in the
continuation.
|
Modifier and Type | Method and Description |
---|---|
Stage.Continuation<DATA> |
apply(DATA data)
Performs a data processing task and returns the processed data together with
a
processing continuation . |
public LinkedStage(java.util.function.Function<DATA,DATA> transformation, Stage<DATA> nextStage)
transformation
- Request transformation function to be applied in the stage.nextStage
- next stage returned in the continuation.public Stage.Continuation<DATA> apply(DATA data)
Stage
processing continuation
.