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

Ask Your Question

Exclusive read from a LocalView


when an object is read from a LocalView with an EXCLUSIVE_READ_LOCK, is the lock propagated to the backing remote space, or is it specific to the LocalView?

The same question in the other direction: if an object is read with an EXCLUSIVE_READ_LOCK in the backing space, is it still possible to read it from a LocalView, or is the lock propagated to all LocalViews?

asked 2017-05-04 09:49:05 -0500

Alexey Serdyuk gravatar image

updated 2017-05-04 09:50:22 -0500

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Transactional activities are executed on the master space and changes should be propagated to local view.

LocalView does not support transactions. So you will not be able to use ReadModifier.EXCLUSIVE_READ_LOCK.

See: https://docs.gigaspaces.com/xap121/lo...

You will get an error message when you attempt this: java.lang.UnsupportedOperationException: Local view doesn't support transactions.

If you try to do an EXCLUSIVE_READ_LOCK without a transaction: java.lang.IllegalArgumentException: Using EXCLUSIVE_READ_LOCK modifier without a transaction is illegal.

answered 2017-05-04 13:38:49 -0500

Dixson Huie gravatar image

updated 2017-05-04 13:41:01 -0500

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: 2017-05-04 09:49:05 -0500

Seen: 261 times

Last updated: May 04 '17