Is there any way to get all the listeners for an object in Hazelcast?
Here's my use case. I create a bunch of queues and attach one to many listeners to those queues. Over time, some of those listeners will be removed and I would like to delete the queue when there are no listeners left. I realize that I can maintain an external structure in my code that keeps track of all the queues and associated listeners but it would be nice if I could do this using Hazelcast itself. Ideally something like queue.getListeners() which would return back a list of listener ids.
I don't see any way to do anything like this in the Hazelcast documentation. Is there a better way to accomplish what I'm trying to do?