[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [smarthome-dev] thing handler scheduler
|
> It seems that there is only one for all…
Yes, that’s the idea - to have a thread pool that is shared among all. Thus it is never shutdown.
> Am 01 Dec 2015 um 10:44 schrieb Markus Rathgeb <maggu2810@xxxxxxxxx>:
>
> 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
> _______________________________________________
> smarthome-dev mailing list
> smarthome-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/smarthome-dev