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

Ask Your Question

Is it possible to set a delay in a notify container?

I have a notify container with a Sql template. I'm using the follow configuration.

@NotifyType(write = true, update = true) @NotifyBatch(size = 100, time = 20000, passArrayAsIs = true)

The thing is that I need to set a delay before the listener is invoked for some seconds. I prefer not create a delay inside the listener because I'm afraid about performance issues.

The other option I considered was to create a dynamic template adding the condition for the queried object "lastUpdateDate > CurrentDate + DELAY", but according to the documentation, this kind of template is not compatible with Notify containers.

Could somebody give me some suggestion?


asked 2016-10-20 12:36:33 -0500

edgarandres8 gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ┬╗ oldest newest most voted

Notify listener is asynchronous by nature. If you place a sleep at the listener there shouldn't be any performance problems. Make sure you increase the LRMI and notification thread pool and relevant queues. See:http://docs.gigaspaces.com/attachment_files/lrmi-new.png http://docs.gigaspaces.com/xap120adm/... http://docs.gigaspaces.com/xap120/not... - Scaling Notification Delivery section

answered 2016-10-22 07:06:39 -0500

shay hassidim 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


Asked: 2016-10-20 12:36:33 -0500

Seen: 255 times

Last updated: Oct 22 '16