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

Ask Your Question

Passing arguments to @SpaceDataEvent method

SimpleNotifyEventListenerContainer notifyEventListenerContainer = new SimpleNotifyContainerConfigurer(gigaSpace) .template(new Data(false)) .eventListenerAnnotation(new Object() { @SpaceDataEvent public void eventHappened() { eventCalled.set(true); } }).notifyContainer();

In the above code for notifycontainer, can i do something like this?

                public void eventHappened(Data event) {
                   System.out.println("Data Id "+data.getId());

Can I pass arguments as Entry object to @SpaceDataEvent method?

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3234]{quote}

asked 2009-09-16 12:15:56 -0500

abhilash428 gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2009-09-17 10:03:42 -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

1 follower


Asked: 2009-09-16 12:15:56 -0500

Seen: 163 times

Last updated: Sep 17 '09