Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[smarthome-dev] thing handler scheduler

Hello,

the scheduler in the base thing handler is created on object construction.
The shutdown[Now] function is never be called.
Shouldn't we create it in the initialize function and shutdown[Now] it
in the dispose function?
Shouldn't shutdown[Now] be called for every "executor" if it is not
used anymore?

Quote:
"An unused ExecutorService should be shut down to allow reclamation of
its resources."
https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ExecutorService.html


Back to the top