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]> 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.
>

Reply via email to