Skip to main content

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

Sorry, I thought there are different executors for the every bindings.
It seems that there is only one for all...

2015-12-01 10:42 GMT+01:00 Markus Rathgeb <maggu2810@xxxxxxxxx>:
> 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