You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Shane Duan <sd...@gmail.com> on 2019/07/02 17:48:01 UTC

Set Expiry Policies When Creating Cache Using Java Thin Client

Hi Igniters,

How can I set expiry policies if I have to create cache using Java Thin
client. I did not see any API to do so in ClientConfiguration.

Thanks,
Shane

Re: Set Expiry Policies When Creating Cache Using Java Thin Client

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Unfortunately it doesn't seem to be possible, so you will have to resort to
other means to create such caches.

You can submit a feature request to our JIRA.

Regards,
-- 
Ilya Kasnacheev


вт, 9 июл. 2019 г. в 07:46, Shane Duan <sd...@gmail.com>:

> Yes, I know I can set the template in SQL (via JDBC) or REST API. But how
> can I set the template on the Java thin client?
>
> Thanks!
>
> On Mon, Jul 8, 2019 at 5:55 AM Ilya Kasnacheev <il...@gmail.com>
> wrote:
>
>> Hello!
>>
>> Yes, you can declare cache configuration templates, refer to them when
>> creating tables from thin client/JDBC, as per documentation:
>> https://apacheignite.readme.io/docs/cache-template
>>
>> Regards,
>> --
>> Ilya Kasnacheev
>>
>>
>> пт, 5 июл. 2019 г. в 21:22, Shane Duan <sd...@gmail.com>:
>>
>>> Thanks, Denis. Alternatively, does ignite thin client provide a way to
>>> use a server side pre-defined cache configurations, just like the TEMPLATE
>>> in the CREATE TABLE statement in SQL?
>>>
>>> Thanks,
>>> Shane
>>>
>>> On Wed, Jul 3, 2019 at 2:41 PM Denis Magda <dm...@apache.org> wrote:
>>>
>>>> Shane,
>>>>
>>>> That's unavailable on the thing clients end yet. My suggestion is to
>>>> configure caches with required expiration policies on the servers'
>>>> configuration end.
>>>>
>>>> -
>>>> Denis
>>>>
>>>>
>>>> On Tue, Jul 2, 2019 at 10:54 AM Shane Duan <sd...@gmail.com> wrote:
>>>>
>>>>> I mean ClientCacheConfiguration
>>>>>
>>>>> On Tue, Jul 2, 2019 at 10:48 AM Shane Duan <sd...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Igniters,
>>>>>>
>>>>>> How can I set expiry policies if I have to create cache using Java
>>>>>> Thin client. I did not see any API to do so in ClientConfiguration.
>>>>>>
>>>>>> Thanks,
>>>>>> Shane
>>>>>>
>>>>>

Re: Set Expiry Policies When Creating Cache Using Java Thin Client

Posted by Shane Duan <sd...@gmail.com>.
Yes, I know I can set the template in SQL (via JDBC) or REST API. But how
can I set the template on the Java thin client?

Thanks!

On Mon, Jul 8, 2019 at 5:55 AM Ilya Kasnacheev <il...@gmail.com>
wrote:

> Hello!
>
> Yes, you can declare cache configuration templates, refer to them when
> creating tables from thin client/JDBC, as per documentation:
> https://apacheignite.readme.io/docs/cache-template
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пт, 5 июл. 2019 г. в 21:22, Shane Duan <sd...@gmail.com>:
>
>> Thanks, Denis. Alternatively, does ignite thin client provide a way to
>> use a server side pre-defined cache configurations, just like the TEMPLATE
>> in the CREATE TABLE statement in SQL?
>>
>> Thanks,
>> Shane
>>
>> On Wed, Jul 3, 2019 at 2:41 PM Denis Magda <dm...@apache.org> wrote:
>>
>>> Shane,
>>>
>>> That's unavailable on the thing clients end yet. My suggestion is to
>>> configure caches with required expiration policies on the servers'
>>> configuration end.
>>>
>>> -
>>> Denis
>>>
>>>
>>> On Tue, Jul 2, 2019 at 10:54 AM Shane Duan <sd...@gmail.com> wrote:
>>>
>>>> I mean ClientCacheConfiguration
>>>>
>>>> On Tue, Jul 2, 2019 at 10:48 AM Shane Duan <sd...@gmail.com> wrote:
>>>>
>>>>> Hi Igniters,
>>>>>
>>>>> How can I set expiry policies if I have to create cache using Java
>>>>> Thin client. I did not see any API to do so in ClientConfiguration.
>>>>>
>>>>> Thanks,
>>>>> Shane
>>>>>
>>>>

Re: Set Expiry Policies When Creating Cache Using Java Thin Client

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Yes, you can declare cache configuration templates, refer to them when
creating tables from thin client/JDBC, as per documentation:
https://apacheignite.readme.io/docs/cache-template

Regards,
-- 
Ilya Kasnacheev


пт, 5 июл. 2019 г. в 21:22, Shane Duan <sd...@gmail.com>:

> Thanks, Denis. Alternatively, does ignite thin client provide a way to use
> a server side pre-defined cache configurations, just like the TEMPLATE in
> the CREATE TABLE statement in SQL?
>
> Thanks,
> Shane
>
> On Wed, Jul 3, 2019 at 2:41 PM Denis Magda <dm...@apache.org> wrote:
>
>> Shane,
>>
>> That's unavailable on the thing clients end yet. My suggestion is to
>> configure caches with required expiration policies on the servers'
>> configuration end.
>>
>> -
>> Denis
>>
>>
>> On Tue, Jul 2, 2019 at 10:54 AM Shane Duan <sd...@gmail.com> wrote:
>>
>>> I mean ClientCacheConfiguration
>>>
>>> On Tue, Jul 2, 2019 at 10:48 AM Shane Duan <sd...@gmail.com> wrote:
>>>
>>>> Hi Igniters,
>>>>
>>>> How can I set expiry policies if I have to create cache using Java Thin
>>>> client. I did not see any API to do so in ClientConfiguration.
>>>>
>>>> Thanks,
>>>> Shane
>>>>
>>>

Re: Set Expiry Policies When Creating Cache Using Java Thin Client

Posted by Shane Duan <sd...@gmail.com>.
Thanks, Denis. Alternatively, does ignite thin client provide a way to use
a server side pre-defined cache configurations, just like the TEMPLATE in
the CREATE TABLE statement in SQL?

Thanks,
Shane

On Wed, Jul 3, 2019 at 2:41 PM Denis Magda <dm...@apache.org> wrote:

> Shane,
>
> That's unavailable on the thing clients end yet. My suggestion is to
> configure caches with required expiration policies on the servers'
> configuration end.
>
> -
> Denis
>
>
> On Tue, Jul 2, 2019 at 10:54 AM Shane Duan <sd...@gmail.com> wrote:
>
>> I mean ClientCacheConfiguration
>>
>> On Tue, Jul 2, 2019 at 10:48 AM Shane Duan <sd...@gmail.com> wrote:
>>
>>> Hi Igniters,
>>>
>>> How can I set expiry policies if I have to create cache using Java Thin
>>> client. I did not see any API to do so in ClientConfiguration.
>>>
>>> Thanks,
>>> Shane
>>>
>>

Re: Set Expiry Policies When Creating Cache Using Java Thin Client

Posted by Denis Magda <dm...@apache.org>.
Shane,

That's unavailable on the thing clients end yet. My suggestion is to
configure caches with required expiration policies on the servers'
configuration end.

-
Denis


On Tue, Jul 2, 2019 at 10:54 AM Shane Duan <sd...@gmail.com> wrote:

> I mean ClientCacheConfiguration
>
> On Tue, Jul 2, 2019 at 10:48 AM Shane Duan <sd...@gmail.com> wrote:
>
>> Hi Igniters,
>>
>> How can I set expiry policies if I have to create cache using Java Thin
>> client. I did not see any API to do so in ClientConfiguration.
>>
>> Thanks,
>> Shane
>>
>

Re: Set Expiry Policies When Creating Cache Using Java Thin Client

Posted by Shane Duan <sd...@gmail.com>.
I mean ClientCacheConfiguration

On Tue, Jul 2, 2019 at 10:48 AM Shane Duan <sd...@gmail.com> wrote:

> Hi Igniters,
>
> How can I set expiry policies if I have to create cache using Java Thin
> client. I did not see any API to do so in ClientConfiguration.
>
> Thanks,
> Shane
>