| 构造器和说明 |
|---|
DefaultPipeline()
todo final chain target,maybe not exists,need one invoker
|
| 限定符和类型 | 方法和说明 |
|---|---|
Pipeline |
addAfter(String baseName,
String name,
Command command)
Inserts a
Command after an existing command of this pipeline. |
Pipeline |
addBefore(String baseName,
String name,
Command command)
Inserts a
Command before an existing command of this pipeline. |
Pipeline |
addFirst(String name,
Command command)
Inserts a
PipelineProcess at the first position of this pipeline. |
Pipeline |
addLast(String name,
Command command)
Appends a
PipelineProcess at the last position of this pipeline. |
PipelineProcess |
context(Class commandType)
Returns the context object of the
Command of the
specified type in this pipeline. |
PipelineProcess |
context(Command command)
Returns the context object of the specified
Command in this pipeline. |
PipelineProcess |
context(String name)
Returns the context object of the
Command with the
specified name in this pipeline. |
Pipeline |
fireEvent(Context<K,V> context,
CompletableFuture<?> future) |
Pipeline |
fireExceptionCaught(Context<K,V> context,
Throwable cause,
CompletableFuture<?> future) |
Command |
first()
Returns the first
Command in this pipeline. |
PipelineProcess |
firstContext()
Returns the context of the first
Command in this pipeline. |
Command |
get(Class commandType)
Returns the
Command of the specified type in this pipeline. |
Command |
get(String name)
Returns the
Command with the specified name in this pipeline. |
Command |
last()
Returns the last
Command in this pipeline. |
PipelineProcess |
lastContext()
Returns the context of the last
Command in this pipeline. |
List<String> |
names()
Returns the
List of the command names. |
Command |
remove(Class commandType)
Removes the
Command of the specified type from this pipeline. |
Pipeline |
remove(Command command)
Removes the specified
Command from this pipeline. |
Command |
remove(String name)
Removes the
Command with the specified name from this pipeline. |
Command |
removeFirst()
Removes the first
Command in this pipeline. |
Command |
removeLast()
Removes the last
Command in this pipeline. |
Map<String,Command<K,V>> |
toMap()
Converts this pipeline into an ordered
Map whose keys are
command names and whose values are commands. |
String |
toString()
Returns the
String representation of this pipeline. |
public DefaultPipeline()
public Pipeline addFirst(String name, Command command)
PipelinePipelineProcess at the first position of this pipeline.public Pipeline addLast(String name, Command command)
PipelinePipelineProcess at the last position of this pipeline.public Pipeline addBefore(String baseName, String name, Command command)
PipelineCommand before an existing command of this pipeline.public Pipeline addAfter(String baseName, String name, Command command)
PipelineCommand after an existing command of this pipeline.public Pipeline remove(Command command)
PipelineCommand from this pipeline.remove 在接口中 Pipeline<K,V>command - the PipelineProcess to removepublic Command remove(String name)
PipelineCommand with the specified name from this pipeline.public final Command remove(Class commandType)
PipelineCommand of the specified type from this pipeline.public Command removeFirst()
PipelineCommand in this pipeline.removeFirst 在接口中 Pipeline<K,V>public Command removeLast()
PipelineCommand in this pipeline.removeLast 在接口中 Pipeline<K,V>public Command get(String name)
PipelineCommand with the specified name in this pipeline.public Command get(Class commandType)
PipelineCommand of the specified type in this pipeline.public PipelineProcess firstContext()
PipelineCommand in this pipeline.firstContext 在接口中 Pipeline<K,V>null if this pipeline is empty.public PipelineProcess lastContext()
PipelineCommand in this pipeline.lastContext 在接口中 Pipeline<K,V>null if this pipeline is empty.public PipelineProcess context(Command command)
PipelineCommand in this pipeline.public PipelineProcess context(String name)
PipelineCommand with the
specified name in this pipeline.public PipelineProcess context(Class commandType)
PipelineCommand of the
specified type in this pipeline.public Map<String,Command<K,V>> toMap()
PipelineMap whose keys are
command names and whose values are commands.public Pipeline fireEvent(Context<K,V> context, CompletableFuture<?> future)
public Pipeline fireExceptionCaught(Context<K,V> context, Throwable cause, CompletableFuture<?> future)
fireExceptionCaught 在接口中 Pipeline<K,V>Copyright © 2021. All rights reserved.