itm / wsn-device-drivers

Drivers for Wireless Sensor Network Devices
Other
6 stars 4 forks source link

Inject TimeLimiter via constructor #50

Closed mlegenhausen closed 13 years ago

mlegenhausen commented 13 years ago

The TimeLimiter can be shared between all operations. A singlethreadExecutor is enough. The shutdown of this executor can be done manual externally.

mlegenhausen commented 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.