public class ChainManager extends Object
| Constructor and Description |
|---|
ChainManager(ProcedureManager procedureManager,
LibraryManager libraryManager,
Parser parser,
EventService<Event> eventService) |
| Modifier and Type | Method and Description |
|---|---|
int |
fetchChainCount()
Fetches the chain count of this manager
|
void |
insert(Link link)
Inserts a link to the front of the chain.
|
void |
publish(Event event)
Passes the event to the first link, then the second link and so forth.
|
boolean |
remove(Link link)
Removes a link from the chain.
|
public ChainManager(ProcedureManager procedureManager, LibraryManager libraryManager, Parser parser, EventService<Event> eventService)
public void publish(Event event)
event - the event to publishpublic void insert(Link link)
link - the link to insert in from of the chain.public boolean remove(Link link)
link - the link to remove from the chain.public int fetchChainCount()
Copyright © 2015. All rights reserved.