[
https://issues.apache.org/jira/browse/NIFI-4049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Koji Kawamura updated NIFI-4049:
--------------------------------
Status: Patch Available (was: In Progress)
> Refactor AtomicDistributedMapCacheClient to be used with cache engines that
> does not have revision number
> ---------------------------------------------------------------------------------------------------------
>
> Key: NIFI-4049
> URL: https://issues.apache.org/jira/browse/NIFI-4049
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: 1.2.0
> Reporter: Koji Kawamura
> Assignee: Koji Kawamura
>
> AtomicDistributedMapCacheClient interface defines fetch and replace method to
> atomically replace cache value. To do so, it currently uses a long revision
> value. This can be a limitation when other implementation is written against
> a cache engine that doesn't have revision concept.
> This JIRA proposes to refactor that interface by using generics to specify
> what type of revision is used by an implementation class.
> If the underlying cache engine doesn't have revision concept, the revision
> field can be used to store current cached value, and to check if the key is
> not updated at 'replace' method.
> https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-client-service-api/src/main/java/org/apache/nifi/distributed/cache/client/AtomicDistributedMapCacheClient.java
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)