Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E1017200D26 for ; Fri, 6 Oct 2017 00:42:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DF1AF160BDB; Thu, 5 Oct 2017 22:42:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 301871609E2 for ; Fri, 6 Oct 2017 00:42:04 +0200 (CEST) Received: (qmail 62500 invoked by uid 500); 5 Oct 2017 22:42:03 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 62487 invoked by uid 99); 5 Oct 2017 22:42:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Oct 2017 22:42:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 79A15CCCDE for ; Thu, 5 Oct 2017 22:42:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MEXi13dfbtzA for ; Thu, 5 Oct 2017 22:42:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id ED1A25FDD1 for ; Thu, 5 Oct 2017 22:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 70D2FE09A6 for ; Thu, 5 Oct 2017 22:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2FDB02432F for ; Thu, 5 Oct 2017 22:42:00 +0000 (UTC) Date: Thu, 5 Oct 2017 22:42:00 +0000 (UTC) From: "Lynn Gallinat (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GEODE-3676) Add a new callback to modify a value before being put into the cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 05 Oct 2017 22:42:05 -0000 [ 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: # 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. # Needing to update an entry when doing inline-caching. Example: needing to update a PdxInstance on-the-fly. Requirements: # This callback should not be invoked while holding locks on the RegionEntry. # Each Region will only support one instance of WriteInterceptor. # Callback should be invoked: #* before CacheWriter #* before value constraint checks #* before null checks on a put #* after CacheLoader # The WriteInterceptor must be mutable at runtime so that a user can change the WriteInterceptor on an existing region. # The WriteInterceptor can be installed or changed via APIs and gfsh commands. # The WriteInterceptor should be invoked only in the member that initiated the write operation and should not be invoked at subsequent distribution points. was: 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: # This callback should not be invoked while holding locks on the RegionEntry. # Each Region will only support one instance of WriteInterceptor. # Callback should be invoked: #* before CacheWriter #* before value constraint checks #* before null checks on a put #* after CacheLoader # The WriteInterceptor must be mutable at runtime so that a user can change the WriteInterceptor on an existing region. # The WriteInterceptor can be installed or changed via APIs and gfsh commands. # The WriteInterceptor should be invoked only in the member that initiated the write operation and should not be invoked at subsequent distribution points. > 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: > # 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. > # Needing to update an entry when doing inline-caching. Example: needing to update a PdxInstance on-the-fly. > Requirements: > # This callback should not be invoked while holding locks on the RegionEntry. > # Each Region will only support one instance of WriteInterceptor. > # Callback should be invoked: > #* before CacheWriter > #* before value constraint checks > #* before null checks on a put > #* after CacheLoader > # The WriteInterceptor must be mutable at runtime so that a user can change the WriteInterceptor on an existing region. > # The WriteInterceptor can be installed or changed via APIs and gfsh commands. > # The WriteInterceptor should be invoked only in the member that initiated the write operation and should not be invoked at subsequent distribution points. -- This message was sent by Atlassian JIRA (v6.4.14#64029)