-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: switch doc engine to Docusaurus
- Loading branch information
Showing
21 changed files
with
43 additions
and
648 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
# 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 `@AutoPipelin` interface's method, we can: | ||
- add `Direction.FORWARD` to apply the interface's method, the annotated method will be called from head to tail | ||
- add `Direction.REVERSE` to apply the interface's method, the annotated method will be called from tail to head | ||
- if there's no `Direction annotation` to the method, the direction of pipeline will follow the `Direction` in the in the `@AutoPipeline` interface, see rule2 | ||
- `Direction.FORWARD` and `Direction.REVERSE` are mutually exclusive, they cannot coexist | ||
- Rule2: in the `@AutoPipeline` interface, we can: | ||
- add `Direction.FORWARD` to the `@AutoPipeline` interface, the methods declared in this interface will be called from head to tail unless the method is annotated with `Direction` in the method level | ||
- add `Direction.REVERSE` to the `@AutoPipeline` interface, the methods declared in this interface will be called from tail to head unless the method is annotated with `Direction` in the method level | ||
- if no `Direction` annotation to the `@AutoPipeline` interface, it equals to add `Direction.FORWARD` to the `@AutoPipeline` interface | ||
- `Direction.FORWARD` and `Direction.REVERSE` are mutually exclusive, they cannot coexist | ||
|
||
## Direction example | ||
For examples, please check the [RPC example](https://github.com/foldright/auto-pipeline/blob/main/auto-pipeline-examples/src/main/java/com/foldright/examples/duplexing/RPC.java) and the [test case](https://github.com/foldright/auto-pipeline/blob/main/auto-pipeline-examples/src/test/java/com/foldright/examples/duplexing/pipeline/RPCTest.kt). |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
docs.old/src/examples.md → docs/docs/tutorial-basics/02-examples.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
# Examples | ||
|
||
check out the [example project](https://github.com/foldright/auto-pipeline/tree/main/auto-pipeline-examples/src/main/java/com/foldright/examples) | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.