public enum PipeStatus extends Enum<PipeStatus>
PipeLayer| 枚举常量和说明 |
|---|
Again
restart when pipeline finished.
|
Exit
Interrupt pipeline event propagation, and Skip all the following
PipeLayer
┏━━━━━━━━━━━━━━━┓ ╭┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮ ┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮
... ┃ PipeLayer (0) ┃ > ┆ PipeLayer (1) ┆ > ┆ PipeLayer (2) ┆ > ...
┗━━━━━━━━━━━━━━━┛ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯
Exit Skip Skip
|
Interrupt
Interrupt pipeline event propagation, and throw Error
┏━━━━━━━━━━━━━━━┓
... ┃ PipeLayer (0) ┃ > Throw Error
┗━━━━━━━━━━━━━━━┛
Interrupt
|
Next
Continuing the execution pipeline
┏━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━┓
┃ PipeLayer (0) ┃ > ┃ PipeLayer (1) ┃ > ┃ PipeLayer (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
┏━━━━━━┓
┏━━━━━━━━━━━━━━━┓ ┃ ┏━━━┻━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━┓
┃ PipeLayer (0) ┃ ┸> ┃ PipeLayer (1) ┃ > ┃ PipeLayer (2) ┃ > ...
┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛
Next Retry Next
|
public static final PipeStatus Next
┏━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━┓
┃ PipeLayer (0) ┃ > ┃ PipeLayer (1) ┃ > ┃ PipeLayer (2) ┃ > ...
┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛
Next Next Next
public static final PipeStatus Retry
┏━━━━━━┓
┏━━━━━━━━━━━━━━━┓ ┃ ┏━━━┻━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━┓
┃ PipeLayer (0) ┃ ┸> ┃ PipeLayer (1) ┃ > ┃ PipeLayer (2) ┃ > ...
┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛
Next Retry Next
public static final PipeStatus Again
If the pipeline is Interrupt, it will not be restarted
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┏━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━┓ ┏━┻━━━━━━━━━━━━━┓
┗> ┃ PipeLayer (0) ┃ > ┃ PipeLayer (1) ┃ > ... > ┃ PipeLayer (2) ┃ > ...
┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛
Next Again Next
public static final PipeStatus Restart
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┏━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━┓ ┏━┻━━━━━━━━━━━━━┓
┗> ┃ PipeLayer (0) ┃ > ┃ PipeLayer (1) ┃ > ┃ PipeLayer (2) ┃ > ...
┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┛
Next Next Restart
public static final PipeStatus Exit
PipeLayer
┏━━━━━━━━━━━━━━━┓ ╭┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮ ┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮
... ┃ PipeLayer (0) ┃ > ┆ PipeLayer (1) ┆ > ┆ PipeLayer (2) ┆ > ...
┗━━━━━━━━━━━━━━━┛ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯
Exit Skip Skip
public static final PipeStatus Interrupt
┏━━━━━━━━━━━━━━━┓
... ┃ PipeLayer (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.