Pipeline Direction
The auto-pipeline also introduced the @PipelineDirection annotation for the pipeline.
Specify the direction
We can specify the direction on methods or interfaces.
The default direction is @Direction.FORWARD, here's the rules:
- Rule1: in the
@AutoPipelineinterface's method, we can:- add
Direction.FORWARDto apply the interface's method, the annotated method will be called from head to tail - add
Direction.REVERSEto apply the interface's method, the annotated method will be called from tail to head - if there's no
Direction annotationto the method, the direction of pipeline will follow theDirectionin the in the@AutoPipelineinterface, see rule2 Direction.FORWARDandDirection.REVERSEare mutually exclusive, they cannot coexist
- add
- Rule2: in the
@AutoPipelineinterface, we can:- add
Direction.FORWARDto the@AutoPipelineinterface, the methods declared in this interface will be called from head to tail unless the method is annotated withDirectionin the method level - add
Direction.REVERSEto the@AutoPipelineinterface, the methods declared in this interface will be called from tail to head unless the method is annotated withDirectionin the method level - if no
Directionannotation to the@AutoPipelineinterface, it equals to addDirection.FORWARDto the@AutoPipelineinterface Direction.FORWARDandDirection.REVERSEare mutually exclusive, they cannot coexist
- add
Direction example
For examples, please check the RPC example and the test case.