E - the type of eventsH - the type of handlerspublic abstract class Pipeline<E,H extends Handler<E>> extends Object
Handlers that handle related events.| Constructor and Description |
|---|
Pipeline(List<H> handlers)
Creates an instance with a given list of handlers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
forward(E event)
Forwards an event through the pipeline.
|
List<H> |
handlers()
Returns the handlers in this pipeline.
|
Copyright © 2021. All Rights Reserved.