Closed mlegenhausen closed 13 years ago
To Inject the timelimiter from outside in each operation produces much boiler plate constructor code or the Operation needs a method setTimeLimiter. At the moment I would prefer the second approuch. TimeLimiter injection will first work in a clean way when issue #30 is solved, cause then the TimeLimiter can injected as constructor argument in the container that executes the operation.
The TimeLimiter can be shared between all operations. A singlethreadExecutor is enough. The shutdown of this executor can be done manual externally.