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

Ask Your Question
0

Get and compare object with previous version

Hi,

I have use case, when I need to subscribe to object changes. Object has an int field. I need to execute logic in subscriber (Notify Listener Container) only in case if (previous version of the object had value = 0 and current value > 0) OR (previous value >0 and current value = 0). But in notify containers and polling containers I didn't find a way - how I can take previous version of the object.

Is it possible to cover this use case? Because I need to handle this situation in Near Real Time.

asked 2016-12-07 21:57:27 -0500

ssherbakov gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Can you try adding a new field to your class for the previous value? Then you can use a SQLQuery to receive notification on objects that match the SQLQuery.

Please see: http://docs.gigaspaces.com/xap120/not... http://docs.gigaspaces.com/xap120/que...

answered 2016-12-08 13:42:57 -0500

Dixson Huie 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

Stats

Asked: 2016-12-07 21:57:27 -0500

Seen: 395 times

Last updated: Dec 08 '16