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

Ask Your Question
0

Changing the lease timeout with polling container

When using a polling container, the container will write the entry back to the space if the entry is returned from the listener function. What would one do if they wished to affect the lease duration of the write the container is about to perform?

My thought is to perform the space.write(entry, lease) in the listener handler and return null. Is this the preferred approach?

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

asked 2008-09-05 21:57:43 -0500

oravecz 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
0

That's a valid option.
U can also change the default lease time.

Shay

answered 2008-09-05 22:17:49 -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

Stats

Asked: 2008-09-05 21:57:43 -0500

Seen: 35 times

Last updated: Sep 05 '08