Notify Container disconnected from space
I am testing a behaviour of a Notify Container in case when the space is completely gone (neither primary nor backup is available). There is a documentation about how to detect that a NotifyContainer is disconnected from space ( http://docs.gigaspaces.com/xap102/not... ), but it is very short.
Question #1: is it possible to configure how long it takes until a LeaseListener (configured as recommended in the documentation) receives a notification that the space is not available? In my tests it takes more than 1 minute. I have seen that in older GigaSpace versions there was a method SimpleNotifyContainerConfigurer.listenerLease(long) to set the timeout, but it is deprecated since 9.7. Why is it a bad idea to have a custom timeout, probably shorter than the standard one?
Question #2: I have observed that an attempt to call SimpleNotifyEventListenerContainer.destroy() takes 20 seconds if the space is not available. Is it as expected or is my configuration sub-optimal? Is it possible to configure the maximum wait time for this method?