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

Ask Your Question
0

Set lease manager interval in Embedded spaces

I would like to set the "space-config.lease_manager.expiration_time_interval" setting for embedded spaces in my integration tests to a specific value (for example 1 second).

Is this possible?

My current code looks like this:

    UrlSpaceConfigurer configurer = new UrlSpaceConfigurer("/./" + spaceName);
    configurer.lookupGroups(getEnv(ENV_LOOKUP_GROUPS, LOOKUP_GROUPS_DEFAULT));
    configurer.addProperty("space-config.lease_manager.expiration_time_interval", "1000");

    GigaSpace gigaSpace = new GigaSpaceConfigurer(configurer).transactionManager(txManager).create();

Of have also tried to set it as a system property but it did not work either:

System.setProperty("space-config.lease_manager.expiration_time_interval", "1500");

I would really appreciate help.

asked 2014-09-24 10:14:20 -0500

leozilla gravatar image

updated 2014-10-11 10:29:02 -0500

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

The UrlSpaceConfigurer.addProperty () should be the right way to set this property value.

answered 2014-10-07 12:34:22 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

it works now with UrlSpaceConfigurer.addProperty() i have no clue why it did not work in the first place thank you

leozilla gravatar imageleozilla ( 2014-10-18 01:58:50 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2014-09-24 10:14:20 -0500

Seen: 81 times

Last updated: Oct 11 '14