Package net.splitcells.dem.execution
Interface EffectSystem<T>
-
- All Superinterfaces:
EventProcessor
,EventQueue<T>
@Deprecated public interface EffectSystem<T> extends EventProcessor, EventQueue<T>
Deprecated.TODO Should be compatible to other actor based systems. TODO This should provide the basis for parallelization.
TODO Make it as simple as possible from API side.The idea is to create an event based effect system, which can also be used in functional(=side effect free) programs. Currently there is no effort being made, to make the executor of such a system explicitly side effect free. It is enough to ensure that a side effect free executor can be implemented and use it as an alternative executor without changing the code that uses the effect system.
In Java the disruptor pattern, the actor model and distributed event streaming platforms (like Kafka) are similar thins. This interface should be implementable via Thread, thread pools, actor model frameworks and the disruptor pattern.
TODO Understand disruptor pattern.
- TODO LMAX
- TODO http://www.coralblocks.com/index.php/category/coralqueue/
- TODO SEDA
TODO Understand actor model.
- TODO https://medium.com/@zakgof/type-safe-actor-model-for-java-7133857a9f72
- TODO https://github.com/zakgof/actr This seems to be the most promising, regarding API.
- TODO https://www.baeldung.com/akka-actors-java
-
-
Method Summary
-
Methods inherited from interface net.splitcells.dem.execution.EventProcessor
processEvents
-
Methods inherited from interface net.splitcells.dem.execution.EventQueue
registerEvent
-
-