org.glassfish.jersey.process.internal
Class Stages.LinkedStage<DATA>

java.lang.Object
  extended by org.glassfish.jersey.process.internal.Stages.LinkedStage<DATA>
Type Parameters:
DATA - processed data type.
All Implemented Interfaces:
Stage<DATA>
Enclosing class:
Stages

public static class Stages.LinkedStage<DATA>
extends Object
implements Stage<DATA>

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
Stages.LinkedStage(com.google.common.base.Function<DATA,DATA> transformation)
          Create a new terminal stage .
Stages.LinkedStage(com.google.common.base.Function<DATA,DATA> transformation, Stage<DATA> nextStage)
          Create a new stage that will return the supplied stage in the continuation.
 
Method Summary
 Stage.Continuation<DATA> apply(DATA data)
          Performs a data processing task and returns the processed data together with a processing continuation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stages.LinkedStage

public Stages.LinkedStage(com.google.common.base.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.

Stages.LinkedStage

public Stages.LinkedStage(com.google.common.base.Function<DATA,DATA> transformation)
Create a new terminal stage .

Parameters:
transformation - Request transformation function to be applied in the stage.
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 a processing continuation.

Specified by:
apply in interface Stage<DATA>
Parameters:
data - data to be transformed.
Returns:
a processing continuation.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.