Re: ClientCacheConfiguration with java thin client

2020-05-26 Thread 배혜원
I see, Thank you so mush :)


나의 iPhone에서 보냄

> 2020. 5. 26. 오후 7:04, Alex Plehanov  작성:
> 
> 
> Hello, 
> 
> By thick client I mean "not by thin client" (sorry for the confusion), i.e. 
> by client node, by server node, by xml configuration, etc.
> 
> вт, 26 мая 2020 г. в 12:49, kay :
>> Thank you so much for reply.
>> 
>> I used xml config file for cache Expirypolicy at server node
>> like 
>> 
>> 
>> > factory-method="factoryOf">
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> it is thick client define?
>> what is exactly think client mean?
>> 
>> 
>> 
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: ClientCacheConfiguration with java thin client

2020-05-26 Thread Alex Plehanov
Hello,

By thick client I mean "not by thin client" (sorry for the confusion), i.e.
by client node, by server node, by xml configuration, etc.

вт, 26 мая 2020 г. в 12:49, kay :

> Thank you so much for reply.
>
> I used xml config file for cache Expirypolicy at server node
> like
>
> 
>  factory-method="factoryOf">
> 
> 
> 
> 
> 
> 
> 
> 
>
> it is thick client define?
> what is exactly think client mean?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: ClientCacheConfiguration with java thin client

2020-05-26 Thread kay
Thank you so much for reply.

I used xml config file for cache Expirypolicy at server node
like 












it is thick client define?
what is exactly think client mean?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: ClientCacheConfiguration with java thin client

2020-05-26 Thread Alex Plehanov
Hello,

On server-side there is property ExpiryPolicyFactory (not just
ExporyPolicy). Factory, in general, can return different expiry policy
values for each call, so there is no common way to convert factory class to
policy class, except some predefined factory implementations which always
return the same policy values.
So, if you set expiry policy for cache by thin client, such predefined
factory implementation is used and you will get the correct value back by
getExpiryPolicy() method. But null will be returned by this method if you
set your custom expiry policy factory by thick client.

вт, 26 мая 2020 г. в 05:31, kay :

> Hello, I got ClientCacheConfiguration in my application with java thin
> client
> like
>
> ClientCache cache = igniteClient.cache("CACHE_NAME");
> ClientCacheConfiguration test = cache.getConfiguration();
>
>
> There is ExpiryPolicy in 'CACHE_NAME'.
> but I got null for test.getExpiryPolicy()
>
> I found expiryPlc=null variable at ClientCacheConfiguration Object.
> Is it bug?? or something that I have to add ??
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


ClientCacheConfiguration with java thin client

2020-05-25 Thread kay
Hello, I got ClientCacheConfiguration in my application with java thin client
like

ClientCache cache = igniteClient.cache("CACHE_NAME");
ClientCacheConfiguration test = cache.getConfiguration();


There is ExpiryPolicy in 'CACHE_NAME'.
but I got null for test.getExpiryPolicy()

I found expiryPlc=null variable at ClientCacheConfiguration Object.
Is it bug?? or something that I have to add ??



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/