hazelcast-python-client icon indicating copy to clipboard operation
hazelcast-python-client copied to clipboard

Get the state of a map, and subscribe for updates

Open markns opened this issue 6 years ago • 2 comments

Hi

I'm wondering if there is any way around the following code to get the state of a map, and subscribe for updates:

for t in self._mymap.values(predicate):
    on_update(t)

registration_id = self._mymap.add_entry_listener(include_value=True,
                                                 added_func=on_update,
                                                 predicate=predicate)

In particular, how to avoid a race condition here?

markns avatar Mar 28 '19 15:03 markns

Hi @markns

What you are asking for can be done with Query Cache but as now, Python client doesn't have this feature. I am going to cc the product management so we can add query cache to the Python client in the future if it fits their plans

cc @burakcelebi

mdumandag avatar Apr 05 '19 08:04 mdumandag

Hi @markns, thank you for submitting your feature request! I have added this to our Python client roadmap. I'll discuss it with the team. Let's see when this can be shipped. Thanks again!

burakcelebi avatar Apr 05 '19 09:04 burakcelebi