Hi there,
I am using CuratorFramework listeners providing an external executor (I am using Java newCachedThreadPool). It works fine to handle concurrency while receivent events in the listener.
But I have an issue when closing the CuratorFramework client. The issue is that some threads are leaked.
Before closing the close() method in CuratorFramework I am calling the shutdownNow method in the executor. What is the proper way to close the CuratorFramework client and Executor in order to avoid this problem? Do I need to handle the close event in the listener in any way (I assume that whne CuratorFramework client is closed the listeners are closed)
Thanks in advance,
Evaristo