blob: 26ccc2dc6da9c404d7b4fd5764fa57bb37da3679 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Apache Geode Native .NET Reference: Apache::Geode::Client::ICacheListener&lt; TKey, TValue &gt; Interface Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Apache Geode Native .NET Reference
&#160;<span id="projectnumber">1.13.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00906.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">Apache::Geode::Client::ICacheListener&lt; TKey, TValue &gt; Interface Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>An application plug-in that can be installed on a region.
<a href="a00906.html#details">More...</a></p>
<p>Inherited by <a class="el" href="a00542.html">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a66b8b2af8d0de71e0b0c383c43bc6e49"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00906.html#a66b8b2af8d0de71e0b0c383c43bc6e49">AfterCreate</a> (<a class="el" href="a00618.html">EntryEvent</a>&lt; TKey, TValue &gt;^ ev)</td></tr>
<tr class="memdesc:a66b8b2af8d0de71e0b0c383c43bc6e49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the event of a new key being added to a region. <a href="#a66b8b2af8d0de71e0b0c383c43bc6e49">More...</a><br /></td></tr>
<tr class="separator:a66b8b2af8d0de71e0b0c383c43bc6e49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5127c94ebd1650b787824ed6b6b1e3c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00906.html#a5127c94ebd1650b787824ed6b6b1e3c6">AfterDestroy</a> (<a class="el" href="a00618.html">EntryEvent</a>&lt; TKey, TValue &gt;^ ev)</td></tr>
<tr class="memdesc:a5127c94ebd1650b787824ed6b6b1e3c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the event of an entry being destroyed. <a href="#a5127c94ebd1650b787824ed6b6b1e3c6">More...</a><br /></td></tr>
<tr class="separator:a5127c94ebd1650b787824ed6b6b1e3c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42304e13b21f18e5500e3777f08ecbea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00906.html#a42304e13b21f18e5500e3777f08ecbea">AfterInvalidate</a> (<a class="el" href="a00618.html">EntryEvent</a>&lt; TKey, TValue &gt;^ ev)</td></tr>
<tr class="memdesc:a42304e13b21f18e5500e3777f08ecbea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the event of an entry's value being invalidated. <a href="#a42304e13b21f18e5500e3777f08ecbea">More...</a><br /></td></tr>
<tr class="separator:a42304e13b21f18e5500e3777f08ecbea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a543a98abcd3965b0d29974b317266700"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00906.html#a543a98abcd3965b0d29974b317266700">AfterRegionClear</a> (<a class="el" href="a01102.html">RegionEvent</a>&lt; TKey, TValue &gt;^ ev)</td></tr>
<tr class="memdesc:a543a98abcd3965b0d29974b317266700"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the event of a region being cleared. <a href="#a543a98abcd3965b0d29974b317266700">More...</a><br /></td></tr>
<tr class="separator:a543a98abcd3965b0d29974b317266700"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5988b611f03aef237e92d366bd791ae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00906.html#ab5988b611f03aef237e92d366bd791ae">AfterRegionDestroy</a> (<a class="el" href="a01102.html">RegionEvent</a>&lt; TKey, TValue &gt;^ ev)</td></tr>
<tr class="memdesc:ab5988b611f03aef237e92d366bd791ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the event of a region being destroyed. <a href="#ab5988b611f03aef237e92d366bd791ae">More...</a><br /></td></tr>
<tr class="separator:ab5988b611f03aef237e92d366bd791ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ba27d0c806e945b2150a3b1c4a95896"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00906.html#a8ba27d0c806e945b2150a3b1c4a95896">AfterRegionInvalidate</a> (<a class="el" href="a01102.html">RegionEvent</a>&lt; TKey, TValue &gt;^ ev)</td></tr>
<tr class="memdesc:a8ba27d0c806e945b2150a3b1c4a95896"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the event of a region being invalidated. <a href="#a8ba27d0c806e945b2150a3b1c4a95896">More...</a><br /></td></tr>
<tr class="separator:a8ba27d0c806e945b2150a3b1c4a95896"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dcd2b8025a2b216695961450c6a4eda"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00906.html#a4dcd2b8025a2b216695961450c6a4eda">AfterRegionLive</a> (<a class="el" href="a01102.html">RegionEvent</a>&lt; TKey, TValue &gt;^ ev)</td></tr>
<tr class="memdesc:a4dcd2b8025a2b216695961450c6a4eda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the event of a region going live. <a href="#a4dcd2b8025a2b216695961450c6a4eda">More...</a><br /></td></tr>
<tr class="separator:a4dcd2b8025a2b216695961450c6a4eda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7c056df7e9f51bbbe847f798b209a6b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00906.html#ad7c056df7e9f51bbbe847f798b209a6b">AfterUpdate</a> (<a class="el" href="a00618.html">EntryEvent</a>&lt; TKey, TValue &gt;^ ev)</td></tr>
<tr class="memdesc:ad7c056df7e9f51bbbe847f798b209a6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the event of an entry's value being modified in a region. <a href="#ad7c056df7e9f51bbbe847f798b209a6b">More...</a><br /></td></tr>
<tr class="separator:ad7c056df7e9f51bbbe847f798b209a6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cb0980b49fccd25bfda19e85f08a014"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00906.html#a5cb0980b49fccd25bfda19e85f08a014">Close</a> (<a class="el" href="a01014.html">IRegion</a>&lt; TKey, TValue &gt;^ region)</td></tr>
<tr class="memdesc:a5cb0980b49fccd25bfda19e85f08a014"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when the region containing this callback is destroyed, when the cache is closed. <a href="#a5cb0980b49fccd25bfda19e85f08a014">More...</a><br /></td></tr>
<tr class="separator:a5cb0980b49fccd25bfda19e85f08a014"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class TKey, class TValue&gt;<br />
interface Apache::Geode::Client::ICacheListener&lt; TKey, TValue &gt;</h3>
<p>An application plug-in that can be installed on a region. </p>
<p>Listeners are change notifications that are invoked AFTER the change has occured for region update operations on a client. Listeners also receive notifications when entries in a region are modified. Multiple events can cause concurrent invocation of <code><a class="el" href="a00906.html" title="An application plug-in that can be installed on a region.">ICacheListener</a></code> methods. If event A occurs before event B, there is no guarantee that their corresponding <code><a class="el" href="a00906.html" title="An application plug-in that can be installed on a region.">ICacheListener</a></code> method invocations will occur in the same order. Any exceptions thrown by the listener are caught by <a class="el" href="a00381.html" title="This namespace contains all the Geode .NET classes and utility classes.">Geode</a> and logged. If the exception is due to listener invocation on the same thread where a region operation has been performed, then a <code><a class="el" href="a00658.html" title="Thrown when the cache listener throws an exception.">CacheListenerException</a></code> is thrown back to the application. If the exception is for a notification received from server then that is logged and the notification thread moves on to receiving other notifications. </p>
<p>A cache listener is defined in the <a class="el" href="a01010.html" title="Defines attributes for configuring a region.">RegionAttributes</a>. </p>
<p>There are two cases in which listeners are invoked. The first is when a region modification operation (e.g. put, create, destroy, invalidate) is performed. For this case it is important to ensure that minimal work is done in the listener before returning control back to <a class="el" href="a00381.html" title="This namespace contains all the Geode .NET classes and utility classes.">Geode</a> since the operation will block till the listener has not completed. For example, a listener implementation may choose to hand off the event to a thread pool that then processes the event on its thread rather than the listener thread. The second is when notifications are received from java server as a result of region register interest calls (<code>Region.RegisterKeys</code> etc), or invalidate notifications when notify-by-subscription is false on the server. In this case the methods of <code><a class="el" href="a00906.html" title="An application plug-in that can be installed on a region.">ICacheListener</a></code> are invoked asynchronously (i.e. does not block the thread that receives notification messages). Additionally for the latter case of notifications from server, listener is always invoked whether or not local operation is successful e.g. if a destroy notification is received and key does not exist in the region, the listener will still be invoked. This is different from the first case where listeners are invoked only when the region update operation succeeds. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a01098.html#aaf05127120e1fb829caf34ee24d2be6b" title="Sets the CacheListener for the RegionAttributes being created.">RegionAttributesFactory.SetCacheListener</a>, <a class="el" href="a01010.html#a6bfca4ea932b8f49f78c02b626bd868e" title="Gets the cache listener for the region.">RegionAttributes.CacheListener</a>, <a class="el" href="a00914.html" title="A data-loading application plug-in that can be installed on a region.">ICacheLoader</a>, <a class="el" href="a00918.html" title="An application plug-in that can be installed on a region.">ICacheWriter</a>, <a class="el" href="a00658.html" title="Thrown when the cache listener throws an exception.">CacheListenerException</a></dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a66b8b2af8d0de71e0b0c383c43bc6e49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66b8b2af8d0de71e0b0c383c43bc6e49">&#9670;&nbsp;</a></span>AfterCreate()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TKey , class TValue &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="a00906.html">Apache::Geode::Client::ICacheListener</a>&lt; TKey, TValue &gt;::AfterCreate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00618.html">EntryEvent</a>&lt; TKey, TValue &gt;^&#160;</td>
<td class="paramname"><em>ev</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Handles the event of a new key being added to a region. </p>
<p>The entry did not previously exist in this region in the local cache (even with a null value). </p>
<p>This function does not throw any exception. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ev</td><td>Denotes the event object associated with the entry creation. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Region.Create, Region.Put, Region.Get</dd></dl>
<p>Implemented in <a class="el" href="a00542.html#ad28bd3c28ac67fc35f4294c3b3165fbe">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
</div>
</div>
<a id="a5127c94ebd1650b787824ed6b6b1e3c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5127c94ebd1650b787824ed6b6b1e3c6">&#9670;&nbsp;</a></span>AfterDestroy()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TKey , class TValue &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="a00906.html">Apache::Geode::Client::ICacheListener</a>&lt; TKey, TValue &gt;::AfterDestroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00618.html">EntryEvent</a>&lt; TKey, TValue &gt;^&#160;</td>
<td class="paramname"><em>ev</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Handles the event of an entry being destroyed. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ev</td><td><a class="el" href="a00618.html" title="This class encapsulates events that occur for an entry in a region.">EntryEvent</a> denotes the event object associated with the entry destruction. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00382.html#a30c72f6219e29e7305222feb4857caeca0e181f89f47654b86f3beb42f5cc08b8" title="When the region or cached object expires, it is destroyed.">Region.Destroy</a></dd></dl>
<p>Implemented in <a class="el" href="a00542.html#af9643635661645e89a27205fa34c5321">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
</div>
</div>
<a id="a42304e13b21f18e5500e3777f08ecbea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42304e13b21f18e5500e3777f08ecbea">&#9670;&nbsp;</a></span>AfterInvalidate()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TKey , class TValue &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="a00906.html">Apache::Geode::Client::ICacheListener</a>&lt; TKey, TValue &gt;::AfterInvalidate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00618.html">EntryEvent</a>&lt; TKey, TValue &gt;^&#160;</td>
<td class="paramname"><em>ev</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Handles the event of an entry's value being invalidated. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ev</td><td><a class="el" href="a00618.html" title="This class encapsulates events that occur for an entry in a region.">EntryEvent</a> denotes the event object associated with the entry invalidation. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="a00542.html#a07dcb99906b78f9b0a24955141bfb608">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
</div>
</div>
<a id="a543a98abcd3965b0d29974b317266700"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a543a98abcd3965b0d29974b317266700">&#9670;&nbsp;</a></span>AfterRegionClear()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TKey , class TValue &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="a00906.html">Apache::Geode::Client::ICacheListener</a>&lt; TKey, TValue &gt;::AfterRegionClear </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a01102.html">RegionEvent</a>&lt; TKey, TValue &gt;^&#160;</td>
<td class="paramname"><em>ev</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Handles the event of a region being cleared. </p>
<p>Implemented in <a class="el" href="a00542.html#a6bc4071b935ed5b32eb16c366f17bfbb">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
</div>
</div>
<a id="ab5988b611f03aef237e92d366bd791ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5988b611f03aef237e92d366bd791ae">&#9670;&nbsp;</a></span>AfterRegionDestroy()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TKey , class TValue &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="a00906.html">Apache::Geode::Client::ICacheListener</a>&lt; TKey, TValue &gt;::AfterRegionDestroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a01102.html">RegionEvent</a>&lt; TKey, TValue &gt;^&#160;</td>
<td class="paramname"><em>ev</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Handles the event of a region being destroyed. </p>
<p>Events are not invoked for each individual entry that is destroyed as a result of the region being destroyed. Each subregion, however, gets its own <code>AfterRegionDestroyed</code> event invoked on its listener. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ev</td><td><a class="el" href="a01102.html" title="This class encapsulates events that occur for a region.">RegionEvent</a> denotes the event object associated with the region destruction. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Region.DestroyRegion</dd></dl>
<p>Implemented in <a class="el" href="a00542.html#a02a326d402649b53b9244877437b542b">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
</div>
</div>
<a id="a8ba27d0c806e945b2150a3b1c4a95896"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ba27d0c806e945b2150a3b1c4a95896">&#9670;&nbsp;</a></span>AfterRegionInvalidate()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TKey , class TValue &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="a00906.html">Apache::Geode::Client::ICacheListener</a>&lt; TKey, TValue &gt;::AfterRegionInvalidate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a01102.html">RegionEvent</a>&lt; TKey, TValue &gt;^&#160;</td>
<td class="paramname"><em>ev</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Handles the event of a region being invalidated. </p>
<p>Events are not invoked for each individual value that is invalidated as a result of the region being invalidated. Each subregion, however, gets its own <code>RegionInvalidated</code> event invoked on its listener. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ev</td><td><a class="el" href="a01102.html" title="This class encapsulates events that occur for a region.">RegionEvent</a> denotes the event object associated with the region invalidation. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Region.InvalidateRegion</dd></dl>
<p>Implemented in <a class="el" href="a00542.html#adbe8a34ed0f06ec6f274e80fbc0ab279">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
</div>
</div>
<a id="a4dcd2b8025a2b216695961450c6a4eda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dcd2b8025a2b216695961450c6a4eda">&#9670;&nbsp;</a></span>AfterRegionLive()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TKey , class TValue &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="a00906.html">Apache::Geode::Client::ICacheListener</a>&lt; TKey, TValue &gt;::AfterRegionLive </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a01102.html">RegionEvent</a>&lt; TKey, TValue &gt;^&#160;</td>
<td class="paramname"><em>ev</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Handles the event of a region going live. </p>
<p>Each subregion gets its own <code>AfterRegionLive</code> event invoked on its listener. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ev</td><td><a class="el" href="a01102.html" title="This class encapsulates events that occur for a region.">RegionEvent</a> denotes the event object associated with the region going live. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00410.html#a99f4b2f798431a0de0e7032657fc602e" title="Send the client-ready message to the server for a durable client.">Cache.ReadyForEvents</a></dd></dl>
<p>Implemented in <a class="el" href="a00542.html#abb8e01be1d3a3f376f5dda60d77df63d">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
</div>
</div>
<a id="ad7c056df7e9f51bbbe847f798b209a6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7c056df7e9f51bbbe847f798b209a6b">&#9670;&nbsp;</a></span>AfterUpdate()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TKey , class TValue &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="a00906.html">Apache::Geode::Client::ICacheListener</a>&lt; TKey, TValue &gt;::AfterUpdate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00618.html">EntryEvent</a>&lt; TKey, TValue &gt;^&#160;</td>
<td class="paramname"><em>ev</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Handles the event of an entry's value being modified in a region. </p>
<p>This entry previously existed in this region in the local cache, but its previous value may have been null. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ev</td><td><a class="el" href="a00618.html" title="This class encapsulates events that occur for an entry in a region.">EntryEvent</a> denotes the event object associated with updating the entry. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Region.Put</dd></dl>
<p>Implemented in <a class="el" href="a00542.html#a4aa21e79f22cb1ba4a12543ef416f1b6">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
</div>
</div>
<a id="a5cb0980b49fccd25bfda19e85f08a014"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cb0980b49fccd25bfda19e85f08a014">&#9670;&nbsp;</a></span>Close()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TKey , class TValue &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="a00906.html">Apache::Geode::Client::ICacheListener</a>&lt; TKey, TValue &gt;::Close </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a01014.html">IRegion</a>&lt; TKey, TValue &gt;^&#160;</td>
<td class="paramname"><em>region</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when the region containing this callback is destroyed, when the cache is closed. </p>
<p>Implementations should clean up any external resources, such as database connections. Any runtime exceptions this method throws will be logged. </p>
<p>It is possible for this method to be called multiple times on a single callback instance, so implementations must be tolerant of this. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00410.html#ae4914b5a4b36ff81a81a91db5225019b" title="Terminates this object cache and releases all the local resources.">Cache.Close</a>, Region.DestroyRegion</dd></dl>
<p>summary&gt; Called when all the endpoints associated with region are down. This will be called when all the endpoints are down for the first time. If endpoints come up and again go down it will be called again. This will also be called when all endpoints are down and region is attached to the pool. /summary&gt; remarks&gt; /remark&gt; param&gt; region Region^ denotes the assosiated region. /param&gt; </p>
<p>Implemented in <a class="el" href="a00542.html#a8e246169732bb24fbbc12491b2a00e27">Apache::Geode::Client::CacheListenerAdapter&lt; TKey, TValue &gt;</a>.</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<HR><address style="align: right;"><small>Apache Geode C++ Cache .NET API Documentation</small></address>