geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lynn Gallinat (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GEODE-3676) Add a new callback to modify a value before being put into the cache
Date Thu, 05 Oct 2017 22:30:03 GMT

     [ https://issues.apache.org/jira/browse/GEODE-3676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lynn Gallinat updated GEODE-3676:
---------------------------------
    Description: 
Create a new callback called WriteInterceptor to allow a user to change the value to be written
during a write operation.

Use cases:

1) Needing to update an entry when doing write behind caching.  For example -- inserting into
a DB and needed to add the auto generated id to the domain object entry.

2) Needing to update an entry when doing inline-caching.  Example: needing to update a PdxInstance
on-the-fly.

Requirements:

1) This callback should not be invoked while holding locks on the RegionEntry.
2) Each Region will only support one instance of WriteInterceptor.
3) Callback should be invoked before CacheWriter and before value constraint checks.


  was:
We are going to create a new processor users can configure to run before or after an entry
is put into the CacheWriter.

Use cases:

1) Needing to update an entry when doing write behind caching.  For example -- inserting into
a DB and needed to add the auto generated id to the domain object entry.

2) Needing to update an entry when doing read trough.  Example: needing to update a PdxInstance
on-the-fly.  Per Gideon's example here:

https://jira-pivotal.atlassian.net/browse/GEM-1569

How we do this probably will model how we do pre / post processing for diskstores for encryption.

     Issue Type: New Feature  (was: Improvement)

> Add a new callback to modify a value before being put into the cache
> --------------------------------------------------------------------
>
>                 Key: GEODE-3676
>                 URL: https://issues.apache.org/jira/browse/GEODE-3676
>             Project: Geode
>          Issue Type: New Feature
>          Components: regions
>            Reporter: Fred Krone
>            Assignee: Lynn Gallinat
>
> Create a new callback called WriteInterceptor to allow a user to change the value to
be written during a write operation.
> Use cases:
> 1) Needing to update an entry when doing write behind caching.  For example -- inserting
into a DB and needed to add the auto generated id to the domain object entry.
> 2) Needing to update an entry when doing inline-caching.  Example: needing to update
a PdxInstance on-the-fly.
> Requirements:
> 1) This callback should not be invoked while holding locks on the RegionEntry.
> 2) Each Region will only support one instance of WriteInterceptor.
> 3) Callback should be invoked before CacheWriter and before value constraint checks.



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

Mime
View raw message