Sure, but that requirement would also be fulfilled by just creating a single instance. No need for counters.
-
you don't really know in advance which index managers are going to request a JGroups channel
-
you don't want to start a JGroups channel if no index manager needs one (as it takes several seconds to start)
-
you only want to close a started channel when the last index manager needing one closes it
|