Thanks, getAttributesMutator is the key.

From: Darrel Schneider [mailto:[email protected]]
Sent: Wednesday, August 02, 2017 4:15 PM
To: [email protected]
Subject: Re: how to remove listener from java code?

The previous code showed adding a listener to a region being created.
If you want to add or remove a listener to an already created region call 
Region#getAttributesMutator and then call addCacheListener or 
removeCacheListener on the mutator.


On Wed, Aug 2, 2017 at 2:01 PM, Xu, Nan <[email protected]<mailto:[email protected]>> 
wrote:
Region<String, String> region = 
cache.createClientRegionFactory(ClientRegionShortcut.PROXY)
                .addCacheListener(listener1)
                .addCacheListener(listener2)

                .create(regionName);

This can add cache listener, how to remove listener1?

Thanks
Nan
________________________________
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer. If you are not the intended 
recipient, please delete this message.

----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

Reply via email to