blob: 0d62257b8e59770527a8696ef20ab81fc0e0b64a [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::CacheableObject Class 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('a00506.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> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#properties">Properties</a> </div>
<div class="headertitle">
<div class="title">Apache::Geode::Client::CacheableObject Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>An mutable generic System.Object wrapper that can serve as a distributable value for caching.
<a href="a00506.html#details">More...</a></p>
<p>Inherits Apache::Geode::Client::IDataSerializablePrimitive.</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:a76344b40a20a6ac6b207d71210bdc0c6"><td class="memItemLeft" align="right" valign="top">virtual String ^&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00506.html#a76344b40a20a6ac6b207d71210bdc0c6">ToString</a> () override</td></tr>
<tr class="memdesc:a76344b40a20a6ac6b207d71210bdc0c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a string representation of the object. <a href="#a76344b40a20a6ac6b207d71210bdc0c6">More...</a><br /></td></tr>
<tr class="separator:a76344b40a20a6ac6b207d71210bdc0c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ad7c4fa52c168ea03532b130fd3937fa2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00506.html">CacheableObject</a> ^&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00506.html#ad7c4fa52c168ea03532b130fd3937fa2">Create</a> (Object^ value)</td></tr>
<tr class="memdesc:ad7c4fa52c168ea03532b130fd3937fa2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Static function to create a new instance from the given object. <a href="#ad7c4fa52c168ea03532b130fd3937fa2">More...</a><br /></td></tr>
<tr class="separator:ad7c4fa52c168ea03532b130fd3937fa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac1a6ce830f2e69418ebe5e722c71297"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a01022.html">ISerializable</a> ^&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00506.html#aac1a6ce830f2e69418ebe5e722c71297">CreateDeserializable</a> ()</td></tr>
<tr class="memdesc:aac1a6ce830f2e69418ebe5e722c71297"><td class="mdescLeft">&#160;</td><td class="mdescRight">Factory function to register this class. <a href="#aac1a6ce830f2e69418ebe5e722c71297">More...</a><br /></td></tr>
<tr class="separator:aac1a6ce830f2e69418ebe5e722c71297"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a70843cb7d3fa58945fa3ac5b40fdb63b"><td class="memItemLeft" align="right" valign="top">Object^&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00506.html#a70843cb7d3fa58945fa3ac5b40fdb63b">Value</a><code> [get]</code></td></tr>
<tr class="memdesc:a70843cb7d3fa58945fa3ac5b40fdb63b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the object value. <a href="#a70843cb7d3fa58945fa3ac5b40fdb63b">More...</a><br /></td></tr>
<tr class="separator:a70843cb7d3fa58945fa3ac5b40fdb63b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>An mutable generic System.Object wrapper that can serve as a distributable value for caching. </p>
<p>This class can serialize any class which has either the [<a class="el" href="a01114.html" title="This class wraps the native C++ native::Serializable objects as managed ISerializable objects.">Serializable</a>] attribute set or implements System.Runtime.Serialization.ISerializable interface. However, for better efficiency the latter should be avoided and the user should implement ../../ISerializable instead. </p>
<p>The user must keep in mind that the rules that apply to runtime serialization would be the rules that apply to this class. For the serialization will be carried out by serializing all the members (public/private/protected) of the class. Each of the contained classes should also have either the [<a class="el" href="a01114.html" title="This class wraps the native C++ native::Serializable objects as managed ISerializable objects.">Serializable</a>] attribute set or implement <code><a class="el" href="a01022.html" title="This interface class is the superclass of all user objects in the cache that can be serialized.">ISerializable</a></code> interface. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ad7c4fa52c168ea03532b130fd3937fa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7c4fa52c168ea03532b130fd3937fa2">&#9670;&nbsp;</a></span>Create()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="a00506.html">CacheableObject</a> ^ Apache::Geode::Client::CacheableObject::Create </td>
<td>(</td>
<td class="paramtype">Object^&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Static function to create a new instance from the given object. </p>
<p>If the given object is null then this method returns null. </p>
</div>
</div>
<a id="aac1a6ce830f2e69418ebe5e722c71297"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac1a6ce830f2e69418ebe5e722c71297">&#9670;&nbsp;</a></span>CreateDeserializable()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="a01022.html">ISerializable</a> ^ Apache::Geode::Client::CacheableObject::CreateDeserializable </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Factory function to register this class. </p>
</div>
</div>
<a id="a76344b40a20a6ac6b207d71210bdc0c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76344b40a20a6ac6b207d71210bdc0c6">&#9670;&nbsp;</a></span>ToString()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual String ^ Apache::Geode::Client::CacheableObject::ToString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a string representation of the object. </p>
<p>Implements <a class="el" href="a01022.html#a335290fd15fd41d39bc73a7ca10d19bd">Apache::Geode::Client::ISerializable</a>.</p>
</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a70843cb7d3fa58945fa3ac5b40fdb63b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70843cb7d3fa58945fa3ac5b40fdb63b">&#9670;&nbsp;</a></span>Value</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Object^ Apache::Geode::Client::CacheableObject::Value</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the object value. </p>
<p>The user can modify the object and the changes shall be reflected immediately in the local cache. For this change to be propagate to other members of the distributed system, the object needs to be put into the cache. </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>