Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

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?

asked 2016-12-05 09:18:59 -0500

Alexey Serdyuk gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted


The proper way to do this is to use the underlying API


There are other parts of the documentation that are concerned with fail-fast with regards to net disconnections, etc.


Please let me know if you still have questions.



answered 2016-12-05 09:53:06 -0500

jb gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-12-05 09:18:59 -0500

Seen: 37 times

Last updated: Dec 05 '16