Class Stages.LinkedStage<DATA>
- java.lang.Object
-
- org.glassfish.jersey.process.internal.Stages.LinkedStage<DATA>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage
Stage.Builder<DATA>, Stage.Continuation<DATA>
-
-
Constructor Summary
Constructors Constructor Description LinkedStage(Function<DATA,DATA> transformation)
Create a new terminal stage .LinkedStage(Function<DATA,DATA> transformation, Stage<DATA> nextStage)
Create a new stage that will return the supplied stage in the continuation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stage.Continuation<DATA>
apply(DATA data)
Performs a data processing task and returns the processed data together with aprocessing continuation
.
-
-
-
Constructor Detail
-
LinkedStage
public LinkedStage(Function<DATA,DATA> transformation, Stage<DATA> nextStage)
Create a new stage that will return the supplied stage in the continuation.- Parameters:
transformation
- Request transformation function to be applied in the stage.nextStage
- next stage returned in the continuation.
-
-
Method Detail
-
apply
public Stage.Continuation<DATA> apply(DATA data)
Description copied from interface:Stage
Performs a data processing task and returns the processed data together with aprocessing continuation
.
-
-