Class BasicPipeline<E>
java.lang.Object
net.orbyfied.j8.event.pipeline.impl.BasicPipeline<E>
- Type Parameters:
E- The type of the event.
- All Implemented Interfaces:
Pipeline<E,,PipelineHandlerAction> PipelineAccess<E>
A list of handlers capable of processing events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a handler to the tail of the pipeline.base()Gets the base pipeline.<T extends Pipeline<E,? extends PipelineHandlerAction>>
Tbase(PipelineConverter<T> converter) handlers()Publishes/pushes an event to the pipeline for it to be handled.intsize()
-
Constructor Details
-
BasicPipeline
public BasicPipeline()
-
-
Method Details
-
handlers
-
size
public int size() -
push
Publishes/pushes an event to the pipeline for it to be handled.- Specified by:
pushin interfacePipeline<E,PipelineHandlerAction> - Specified by:
pushin interfacePipelineAccess<E>- Parameters:
event- The event.- Returns:
- This.
-
handler
- Specified by:
handlerin interfacePipeline<E,PipelineHandlerAction>
-
base
Description copied from interface:PipelineAccessGets the base pipeline. Expected to be the direct pipeline owned by the owner of this virtual pipeline, but can be different.- Specified by:
basein interfacePipelineAccess<E>- Returns:
- The base pipeline.
-
base
public <T extends Pipeline<E,? extends PipelineHandlerAction>> T base(PipelineConverter<T> converter) - Specified by:
basein interfacePipelineAccess<E>
-
addLast
Adds a handler to the tail of the pipeline.- Parameters:
handler- The handler.- Returns:
- This.
-