sepatel / inigma-shared

This project is no longer maintained. Common Libraries used for Web Applications
Apache License 2.0
3 stars 0 forks source link

Asynchronous monitor cannot be terminated #4

Closed sepatel closed 12 years ago

sepatel commented 12 years ago

I don't want to have the asynchronous monitor in place as I am using a custom one. Because initialize is run internally there is no way to get a handle on the asynchronous monitor in order to terminate it. Allow a way to not have that built-in monitor to run.

sepatel commented 12 years ago

Removed the auto-monitoring instanced created at object instantiation. The actual monitor is now publicly visible and if monitoring is desired than an explicit declaration of that monitor may be created and scheduled at the desired interval.

Thus no need to gain access to the internal monitor in order to cancel it, simply no longer have an internal one and no longer auto-start something that might be undesired and need to be terminated. Best to explicitly declare desired monitor and not be surprised by magic happening.