[jira] [Commented] (CAMEL-10267) Create a Caffeine component

2017-06-22 Thread Andrea Cosentino (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16058978#comment-16058978
 ] 

Andrea Cosentino commented on CAMEL-10267:
--

I'm marking this as resolved and I'll open other JIRAs about improvements.

> Create a Caffeine component
> ---
>
> Key: CAMEL-10267
> URL: https://issues.apache.org/jira/browse/CAMEL-10267
> Project: Camel
>  Issue Type: New Feature
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Minor
> Fix For: 2.20.0
>
>
> It would be great to have a Caffeine component:
> https://github.com/ben-manes/caffeine



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-10267) Create a Caffeine component

2017-06-21 Thread Andrea Cosentino (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16058817#comment-16058817
 ] 

Andrea Cosentino commented on CAMEL-10267:
--

Thanks a lot for the hints [~ben.manes] :-)

If you'd like to contribute, you're welcome! :-)

> Create a Caffeine component
> ---
>
> Key: CAMEL-10267
> URL: https://issues.apache.org/jira/browse/CAMEL-10267
> Project: Camel
>  Issue Type: New Feature
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Minor
> Fix For: Future
>
>
> It would be great to have a Caffeine component:
> https://github.com/ben-manes/caffeine



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-10267) Create a Caffeine component

2017-06-21 Thread Ben Manes (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16058213#comment-16058213
 ] 

Ben Manes commented on CAMEL-10267:
---

Thanks for this! :-)

I haven't had the pleasure to use Camel so I'm unsure about the workflow 
experience. The features you may (or may not) want to add in a future iteration 
are,
* RemovalListener provides an async notification, e.g. to close a resource like 
a socket.
* CacheWriter provides a sync notification for create/update/delete, e.g. to 
update a second resource atomically (perhaps a file system cache)
* Fixed and variable expiration (Expiry). The latter is when the external 
resource defines policy, e.g. an http expire header, so each entry can have a 
different duration.

Fyi, some behavior can be performed asynchronously (e.g. removal listener, 
async cache). That can be annoying in unit tests so you can provide a 
same-thread executor. Not sure if that would be useful to expose, handled 
automagically by your test kit, not an issue, ...

> Create a Caffeine component
> ---
>
> Key: CAMEL-10267
> URL: https://issues.apache.org/jira/browse/CAMEL-10267
> Project: Camel
>  Issue Type: New Feature
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Minor
> Fix For: Future
>
>
> It would be great to have a Caffeine component:
> https://github.com/ben-manes/caffeine



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-10267) Create a Caffeine component

2017-06-21 Thread Andrea Cosentino (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057243#comment-16057243
 ] 

Andrea Cosentino commented on CAMEL-10267:
--

I pushed the first version of the component.

Still need a bit of work for the available options, but it's already something.

You have two different component

caffeine-cache and caffeine-loadcache for the moment. In the future we can add 
the async version.



> Create a Caffeine component
> ---
>
> Key: CAMEL-10267
> URL: https://issues.apache.org/jira/browse/CAMEL-10267
> Project: Camel
>  Issue Type: New Feature
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Minor
> Fix For: Future
>
>
> It would be great to have a Caffeine component:
> https://github.com/ben-manes/caffeine



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-10267) Create a Caffeine component

2017-05-29 Thread Andrea Cosentino (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16028090#comment-16028090
 ] 

Andrea Cosentino commented on CAMEL-10267:
--

I will work on this then

> Create a Caffeine component
> ---
>
> Key: CAMEL-10267
> URL: https://issues.apache.org/jira/browse/CAMEL-10267
> Project: Camel
>  Issue Type: New Feature
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Minor
> Fix For: Future
>
>
> It would be great to have a Caffeine component:
> https://github.com/ben-manes/caffeine



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (CAMEL-10267) Create a Caffeine component

2017-05-29 Thread Luca Burgazzoli (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16028087#comment-16028087
 ] 

Luca Burgazzoli commented on CAMEL-10267:
-

camel-caffeine could provide an embedded cache for CAMEL-4 so +1 to have it

> Create a Caffeine component
> ---
>
> Key: CAMEL-10267
> URL: https://issues.apache.org/jira/browse/CAMEL-10267
> Project: Camel
>  Issue Type: New Feature
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Minor
> Fix For: Future
>
>
> It would be great to have a Caffeine component:
> https://github.com/ben-manes/caffeine



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (CAMEL-10267) Create a Caffeine component

2016-09-16 Thread Andrea Cosentino (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15495773#comment-15495773
 ] 

Andrea Cosentino commented on CAMEL-10267:
--

Not sure how much this can be useful. If we would like to use caffeine as 
JCache we already have this possibility with camel-jcache and the caffeine 
cacheprovider. I leave the issue unassigned, this way if someone would like to 
implement it it can be a good experience.

> Create a Caffeine component
> ---
>
> Key: CAMEL-10267
> URL: https://issues.apache.org/jira/browse/CAMEL-10267
> Project: Camel
>  Issue Type: New Feature
>Reporter: Andrea Cosentino
>Priority: Minor
> Fix For: Future
>
>
> It would be great to have a Caffeine component:
> https://github.com/ben-manes/caffeine



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)