Class Stages.LinkedStage<DATA>
java.lang.Object
org.glassfish.jersey.process.internal.Stages.LinkedStage<DATA>
- Type Parameters:
DATA
- processed data type.
- All Implemented Interfaces:
Stage<DATA>
- Enclosing class:
- Stages
Linked linear stage implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage
Stage.Builder<DATA>, Stage.Continuation<DATA>
-
Constructor Summary
ConstructorDescriptionLinkedStage
(Function<DATA, DATA> transformation) Create a new terminal stage .Create a new stage that will return the supplied stage in the continuation. -
Method Summary
Modifier and TypeMethodDescriptionPerforms a data processing task and returns the processed data together with aprocessing continuation
.
-
Constructor Details
-
LinkedStage
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.
-
LinkedStage
Create a new terminal stage .- Parameters:
transformation
- Request transformation function to be applied in the stage.
-
-
Method Details
-
apply
Description copied from interface:Stage
Performs a data processing task and returns the processed data together with aprocessing continuation
.
-