ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitriy Pavlov <dpav...@apache.org>
Subject Re: What's the difference between ClientCache#removeAll() and ClientCache#clear()
Date Fri, 26 Apr 2019 15:26:25 GMT
Hi Ken,

please feel free to create and PR and ticket for updating this.

Sincerely,
Dmitriy Pavlov

пт, 26 апр. 2019 г. в 18:22, Ken Cheng <kcheng.mvp@gmail.com>:

> [image: image.png]
>
> There is no java doc about this. Anyway thank you very much!
>
>
> Thanks,
> Ken Cheng
>
>
> On Fri, Apr 26, 2019 at 7:52 PM Ilya Kasnacheev <ilya.kasnacheev@gmail.com>
> wrote:
>
>> Hello!
>>
>> Clear will not notify cache listeners or CacheWriters, but removeAll()
>> will.
>>
>> This is as per IgniteCache doc (which I guess is underlying here).
>>
>> Regards,
>> --
>> Ilya Kasnacheev
>>
>>
>> пт, 26 апр. 2019 г. в 05:10, kcheng.mvp <kcheng.mvp@gmail.com>:
>>
>>> Here is the code snippet from
>>> org.apache.ignite.client.ClientCache
>>>
>>> what's the difference between these two methods?
>>>
>>> *****************************************************
>>>     /**
>>>      * Clears the contents of the cache.
>>>      */
>>>     public void clear() throws ClientException;
>>>
>>>
>>>
>>>     /**
>>>      * Removes all of the mappings from this cache.
>>>      * <p>
>>>      * The order that the individual entries are removed is undefined.
>>>      */
>>>     public void removeAll() throws ClientException;
>>>
>>> *****************************************************
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>>
>>

Mime
View raw message