LimeTree - fulmicotone/com.fulmicotone.util.concurrent.tree GitHub Wiki
The component deals with creation, configuration and retrieve of consumers. Also has command, configuration and getter methods of the whole tree system. Following a short description of the main methods:
- newLime(Optional key) Get a new instance of Lime(consumer) builder
- getWireSize() Get a map key=> size of unconsumed items in each consumers
- getWireBy(String key) Get the queue related to lime key
- shutdownLimeBy(String key) Shutdown a consumer by its key
- submitUncommited() Submit the consumer created but not committed in the threadpool
- clearCutBrutal() Shutdown the whole tree and consumers immediately
- clearCutAwaitActs(Optional millis) Waits until all consumers finish
- setTimeoutForInactivity(millis) Set time in millis of inactivity allowed. After will be invoked clearCutBrutal
- addListener(TreeLifeCycleListener) Adds a listener to follow the entire tree life cycle