public enum PipeStatus extends Enum<PipeStatus>
PipeDuplex| 枚举常量和说明 |
|---|
Again
restart when pipeline finished.
|
Back
restarted from the current node after pipeline finished.
|
Exit
Interrupt pipeline event propagation, and Skip all the following
PipeDuplex
┏━━━━━━━━━━━━━━┓ ╭┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮ ┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮
... ┃ PipeNode (0) ┃ > ┆ PipeNode (1) ┆ > ┆ PipeNode (2) ┆ > ...
┗━━━━━━━━━━━━━━┛ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯
Exit Skip Skip
|
Interrupt
Interrupt pipeline event propagation, and throw Error
┏━━━━━━━━━━━━━━┓
... ┃ PipeNode (0) ┃ > Throw Error
┗━━━━━━━━━━━━━━┛
Interrupt
|
Next
Continuing the execution pipeline
┏━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━┓
┃ PipeNode (0) ┃ > ┃ PipeNode (1) ┃ > ┃ PipeNode (2) ┃ > ...
┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛
Next Next Next
|
Restart
Interrupt the pipeline event propagation and restarted of the pipeline.
|
Retry
Retry this method call, using again to avoid recursion
╭──────╮
┏━━━━━━━━━━━━━━┓ │ ┏━━━┷━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━┓
┃ PipeNode (0) ┃ ┷> ┃ PipeNode (1) ┃ > ┃ PipeNode (2) ┃ > ...
┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛
Next Retry Next
|
Skip
Execution continues by skipping the next node of the pipeline.
|
public static final PipeStatus Next
┏━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━┓
┃ PipeNode (0) ┃ > ┃ PipeNode (1) ┃ > ┃ PipeNode (2) ┃ > ...
┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛
Next Next Next
public static final PipeStatus Retry
╭──────╮
┏━━━━━━━━━━━━━━┓ │ ┏━━━┷━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━┓
┃ PipeNode (0) ┃ ┷> ┃ PipeNode (1) ┃ > ┃ PipeNode (2) ┃ > ...
┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛
Next Retry Next
public static final PipeStatus Again
If the pipeline is Interrupt, it will not be restarted
╭────────────────────────────────────────────────╮
│ ┏━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━┓ ┏━┷━━━━━━━━━━━━┓
┕> ┃ PipeNode (0) ┃ > ┃ PipeNode (1) ┃ > ... > ┃ PipeNode (2) ┃ > ...
┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛
Next Again Next
public static final PipeStatus Back
If the pipeline is Interrupt, it will not be restarted
╭─────────────────────────────╮
┏━━━━━━━━━━━━━━┓ │ ┏━━━━━━━━━━━━━━┓ ┏━┷━━━━━━━━━━━━┓
┃ PipeNode (0) ┃ ┷> ┃ PipeNode (1) ┃ > ... > ┃ PipeNode (2) ┃ > ...
┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛
Next Back Next
public static final PipeStatus Restart
╭───────────────────────╮
│ ┏━━━━━━━━━━━━━━┓ ┏━┷━━━━━━━━━━━━┓ ┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮
┕> ┃ PipeNode (0) ┃ > ┃ PipeNode (1) ┃ > ┆ PipeNode (2) ┆ > ...
┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯
Next Restart Skip
public static final PipeStatus Skip
┏━━━━━━━━━━━━━━┓ ╭┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮ ┏━━━━━━━━━━━━━━┓
... ┃ PipeNode (0) ┃ > ┆ PipeNode (1) ┆ > ┃ PipeNode (2) ┃ > ...
┗━━━━━━━━━━━━━━┛ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯ ┗━━━━━━━━━━━━━━┛
Skip (skipped) Next
public static final PipeStatus Exit
PipeDuplex
┏━━━━━━━━━━━━━━┓ ╭┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮ ┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮
... ┃ PipeNode (0) ┃ > ┆ PipeNode (1) ┆ > ┆ PipeNode (2) ┆ > ...
┗━━━━━━━━━━━━━━┛ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯
Exit Skip Skip
public static final PipeStatus Interrupt
┏━━━━━━━━━━━━━━┓
... ┃ PipeNode (0) ┃ > Throw Error
┗━━━━━━━━━━━━━━┛
Interrupt
public static PipeStatus[] values()
for (PipeStatus c : PipeStatus.values()) System.out.println(c);
public static PipeStatus valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2022–2024. All rights reserved.