Re: Listener/Writer events for Region.get() operation

2016-01-28 Thread Barry Oglesby
I'm not sure I'm the best person to answer whether adding an EntryEvent and beforeGet/afterGet callbacks for a get call is a good idea, but there is a way to do pre- and post-processing on get calls using the security framework AccessControl callback. I attached an example of this. It includes a r

Re: Listener/Writer events for Region.get() operation

2016-01-28 Thread Darrel Schneider
Using an EntryEventImpl in the get code is the right idea. It seems odd to add befoteGet to CacheWriter since CacheWriter is only intended for modify operations. I think it would make more sense to add both beforeGet and afterGet to CacheListener. Currently the only get operations that create an

Listener/Writer events for Region.get() operation

2016-01-28 Thread Nilkanth Patel
Hello, Is it possible to get beforeGet(), afterGet() events for Region.get() API with current state of codebase..? Seeing the internal code, it seems *i need to add code *(that invoke listener, writer callbacks) for these events, something similar to the way events for Region.put() are invoked. i