| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_272) on Thu Nov 12 16:27:22 PST 2020 --> |
| <title>EvictionAttributes (Apache Geode 1.13.1)</title> |
| <meta name="date" content="2020-11-12"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="EvictionAttributes (Apache Geode 1.13.1)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":41,"i2":41,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":10,"i17":6,"i18":6,"i19":6,"i20":6,"i21":10,"i22":10,"i23":10}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html" title="class in org.apache.geode.cache"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/geode/cache/EvictionAttributesMutator.html" title="interface in org.apache.geode.cache"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/geode/cache/EvictionAttributes.html" target="_top">Frames</a></li> |
| <li><a href="EvictionAttributes.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.geode.cache</div> |
| <h2 title="Class EvictionAttributes" class="title">Class EvictionAttributes</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.geode.cache.EvictionAttributes</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public abstract class <span class="typeNameLabel">EvictionAttributes</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block"><p> |
| Attributes that describe how a <code>Region</code>'s size is managed through an eviction |
| controller. Eviction controllers are defined by an |
| <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html" title="class in org.apache.geode.cache"><code>EvictionAlgorithm</code></a> and a |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache"><code>EvictionAction</code></a>. Once a <code>Region</code> is created with an |
| eviction controller, it can not be removed, however it can be changed through an |
| <a href="../../../../org/apache/geode/cache/EvictionAttributesMutator.html" title="interface in org.apache.geode.cache"><code>EvictionAttributesMutator</code></a>.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 5.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/AttributesFactory.html#setEvictionAttributes-org.apache.geode.cache.EvictionAttributes-"><code>AttributesFactory.setEvictionAttributes(EvictionAttributes)</code></a>, |
| <a href="../../../../org/apache/geode/cache/AttributesMutator.html" title="interface in org.apache.geode.cache"><code>AttributesMutator</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_ENTRIES_MAXIMUM">DEFAULT_ENTRIES_MAXIMUM</a></span></code> |
| <div class="block">The default maximum for <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">DEFAULT_MEMORY_MAXIMUM</a></span></code> |
| <div class="block">The default maximum for <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a>.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#EvictionAttributes--">EvictionAttributes</a></span>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/geode/cache/configuration/RegionAttributesType.EvictionAttributes.html" title="class in org.apache.geode.cache.configuration">RegionAttributesType.EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#convertToConfigEvictionAttributes--">convertToConfigEvictionAttributes</a></span>()</code> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLIFOEntryAttributes-int-org.apache.geode.cache.EvictionAction-">createLIFOEntryAttributes</a></span>(int maximumEntries, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">For internal use only.</span></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLIFOMemoryAttributes-int-org.apache.geode.cache.EvictionAction-">createLIFOMemoryAttributes</a></span>(int maximumMegabytes, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">For internal use only.</span></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUEntryAttributes--">createLRUEntryAttributes</a></span>()</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and default |
| <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_ENTRIES_MAXIMUM">maximum</a>.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUEntryAttributes-org.apache.geode.cache.EvictionAction-">createLRUEntryAttributes</a></span>(<a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_ENTRIES_MAXIMUM">maximum</a> and given <code>evictionAction</code>.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUEntryAttributes-int-">createLRUEntryAttributes</a></span>(int maximumEntries)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and given |
| <code>maximumEntries</code>.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUEntryAttributes-int-org.apache.geode.cache.EvictionAction-">createLRUEntryAttributes</a></span>(int maximumEntries, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with |
| given <code>evictionAction</code> and given <code>maximumEntries</code>.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUHeapAttributes--">createLRUHeapAttributes</a></span>()</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP">heap LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and default |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html#DEFAULT">sizer</a>.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUHeapAttributes-org.apache.geode.cache.util.ObjectSizer-">createLRUHeapAttributes</a></span>(<a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP">heap LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and the given |
| <code>sizer</code>.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUHeapAttributes-org.apache.geode.cache.util.ObjectSizer-org.apache.geode.cache.EvictionAction-">createLRUHeapAttributes</a></span>(<a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP">heap LRU</a> eviction attributes with |
| the given <code>evictionAction</code> and given <code>sizer</code>.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes--">createLRUMemoryAttributes</a></span>()</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, default |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html#DEFAULT">sizer</a>, and default <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">maximum</a>.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes-int-">createLRUMemoryAttributes</a></span>(int maximumMegabytes)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, default |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html#DEFAULT">sizer</a>, and given <code>maximumMegabytes</code>.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes-int-org.apache.geode.cache.util.ObjectSizer-">createLRUMemoryAttributes</a></span>(int maximumMegabytes, |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, given |
| <code>sizer</code>, and given <code>maximumMegabytes</code>.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes-int-org.apache.geode.cache.util.ObjectSizer-org.apache.geode.cache.EvictionAction-">createLRUMemoryAttributes</a></span>(int maximumMegabytes, |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with the given <code>evictionAction</code>, given <code>sizer</code>, and given |
| <code>maximumMegabytes</code>.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes-org.apache.geode.cache.util.ObjectSizer-">createLRUMemoryAttributes</a></span>(<a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, given |
| <code>sizer</code>, and default <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">maximum</a>.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes-org.apache.geode.cache.util.ObjectSizer-org.apache.geode.cache.EvictionAction-">createLRUMemoryAttributes</a></span>(<a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</code> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with given <code>evictionAction</code>, given <code>sizer</code>, and default |
| <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">maximum</a>.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</code> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>abstract <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#getAction--">getAction</a></span>()</code> </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>abstract <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html" title="class in org.apache.geode.cache">EvictionAlgorithm</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#getAlgorithm--">getAlgorithm</a></span>()</code> |
| <div class="block">The algorithm is used to identify entries that will be evicted.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>abstract int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#getMaximum--">getMaximum</a></span>()</code> |
| <div class="block">The unit of this value is determined by the definition of the <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html" title="class in org.apache.geode.cache"><code>EvictionAlgorithm</code></a> set by |
| one of the creation methods e.g.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>abstract <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#getObjectSizer--">getObjectSizer</a></span>()</code> |
| <div class="block">An <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util"><code>ObjectSizer</code></a> is used by the <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY"><code>EvictionAlgorithm.LRU_MEMORY</code></a> algorithm to measure |
| the size of each Entry as it is entered into a Region.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#hashCode--">hashCode</a></span>()</code> </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#isNoEviction--">isNoEviction</a></span>()</code> </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#toString--">toString</a></span>()</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="DEFAULT_ENTRIES_MAXIMUM"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_ENTRIES_MAXIMUM</h4> |
| <pre>public static final int DEFAULT_ENTRIES_MAXIMUM</pre> |
| <div class="block">The default maximum for <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a>. Currently |
| <code>900</code> entries.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../constant-values.html#org.apache.geode.cache.EvictionAttributes.DEFAULT_ENTRIES_MAXIMUM">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_MEMORY_MAXIMUM"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>DEFAULT_MEMORY_MAXIMUM</h4> |
| <pre>public static final int DEFAULT_MEMORY_MAXIMUM</pre> |
| <div class="block">The default maximum for <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a>. Currently |
| <code>10</code> megabytes.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../constant-values.html#org.apache.geode.cache.EvictionAttributes.DEFAULT_MEMORY_MAXIMUM">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="EvictionAttributes--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>EvictionAttributes</h4> |
| <pre>public EvictionAttributes()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="createLRUEntryAttributes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUEntryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUEntryAttributes()</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and default |
| <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_ENTRIES_MAXIMUM">maximum</a>. |
| <p/> |
| <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache"><code>EvictionAttributes</code></a> cause regions to evict the least recently used (LRU) entry once the |
| region reaches a maximum capacity. The entry is either locally destroyed or its value overflows |
| to disk when evicted. |
| <p/> |
| <p/> |
| This is not supported when replication is enabled. |
| <p/> |
| <p/> |
| For a region with <a href="../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>DataPolicy.PARTITION</code></a>, the EvictionAttribute <code>maximum</code>, |
| indicates the number of entries allowed in the region, collectively for its primary buckets and |
| redundant copies for this JVM. Once there are <code>maximum</code> entries in the region's |
| primary buckets and redundant copies for this JVM, the least recently used entry will be |
| evicted from the bucket in which the subsequent put takes place. |
| <p/> |
| <p/> |
| If you are using a <code>cache.xml</code> file to create a Cache Region declaratively, you can |
| include the following to configure a region for eviction |
| <p/> |
| |
| <pre> |
| <region-attributes> |
| <eviction-attributes> |
| <lru-entry-count maximum="900" action="local-destroy"/> |
| </eviction-attributes> |
| </region-attributes> |
| </pre></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with default |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and default |
| <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_ENTRIES_MAXIMUM">maximum</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUEntryAttributes-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUEntryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUEntryAttributes(int maximumEntries)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and given |
| <code>maximumEntries</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>maximumEntries</code> - the number of entries to keep in the Region</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with default |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and |
| <code>maximumEntries</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUEntryAttributes--"><code>createLRUEntryAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUEntryAttributes-org.apache.geode.cache.EvictionAction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUEntryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUEntryAttributes(<a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_ENTRIES_MAXIMUM">maximum</a> and given <code>evictionAction</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>evictionAction</code> - the action to perform when evicting an entry</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with default |
| <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_ENTRIES_MAXIMUM">maximum</a> and given <code>evictionAction</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 8.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUEntryAttributes--"><code>createLRUEntryAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUEntryAttributes-int-org.apache.geode.cache.EvictionAction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUEntryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUEntryAttributes(int maximumEntries, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with |
| given <code>evictionAction</code> and given <code>maximumEntries</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>maximumEntries</code> - the number of entries to keep in the Region</dd> |
| <dd><code>evictionAction</code> - the action to perform when evicting an entry</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_ENTRY">entry LRU</a> eviction attributes with given |
| <code>evictionAction</code> and given <code>maximumEntries</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUEntryAttributes--"><code>createLRUEntryAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUHeapAttributes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUHeapAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUHeapAttributes()</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP">heap LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and default |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html#DEFAULT">sizer</a>. |
| <p/> |
| Heap LRU EvictionAttributes evict the least recently used <a href="../../../../org/apache/geode/cache/Region.Entry.html" title="interface in org.apache.geode.cache"><code>Region.Entry</code></a> when heap usage |
| exceeds the <a href="../../../../org/apache/geode/cache/control/ResourceManager.html" title="interface in org.apache.geode.cache.control"><code>ResourceManager</code></a> eviction heap threshold. If the eviction heap threshold is |
| exceeded the least recently used <a href="../../../../org/apache/geode/cache/Region.Entry.html" title="interface in org.apache.geode.cache"><code>Region.Entry</code></a>s are evicted. |
| <p/> |
| <p/> |
| With other LRU-based eviction controllers, only cache actions (such as |
| <a href="../../../../org/apache/geode/cache/Region.html#put-K-V-"><code>puts</code></a> and <a href="../../../../org/apache/geode/cache/Region.html#get-java.lang.Object-"><code>gets</code></a>) cause the LRU |
| entry to be evicted. However, with heap LRU, because the JVM's heap may be effected by more |
| than just the GemFire cache operations, a daemon thread will perform the eviction if no |
| operations are being done on the region. |
| <p/> |
| The eviction attribute's <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">sizer</a> is used to estimate how much the heap |
| will be reduced by an eviction. |
| <p/> |
| When using Heap LRU, the JVM must be launched with the <code>-Xmx</code> and <code>-Xms</code> |
| switches set to the same values. Many virtual machine implementations have additional JVM |
| switches to control the behavior of the garbage collector. We suggest that you investigate |
| tuning the garbage collector when using this type of eviction controller. A collector that |
| frequently collects is needed to keep our heap usage up to date. In particular, on the Sun |
| <A href="http://java.sun.com/docs/hotspot/gc/index.html">HotSpot</a> JVM, the |
| <code>-XX:+UseConcMarkSweepGC</code> flag needs to be set, and |
| <code>-XX:CMSInitiatingOccupancyFraction=N</code> should be set with N being a percentage that |
| is less than the <a href="../../../../org/apache/geode/cache/control/ResourceManager.html" title="interface in org.apache.geode.cache.control"><code>ResourceManager</code></a> eviction heap threshold. |
| <p/> |
| The JRockit JVM has similar flags, <code>-Xgc:gencon</code> and <code>-XXgcTrigger:N</code>, |
| which are required if using this LRU algorithm. Please Note: the JRockit gcTrigger flag is |
| based on heap free, not heap in use like the GemFire parameter. This means you need to set |
| gcTrigger to 100-N. for example, if your eviction threshold is 30 percent, you will need to set |
| gcTrigger to 70 percent. |
| <p/> |
| On the IBM JVM, the flag to get a similar collector is <code>-Xgcpolicy:gencon</code>, but |
| there is no corollary to the gcTrigger/CMSInitiatingOccupancyFraction flags, so when using this |
| feature with an IBM JVM, the heap usage statistics might lag the true memory usage of the JVM, |
| and thresholds may need to be set sufficiently high that the JVM will initiate GC before the |
| thresholds are crossed. |
| <p/> |
| If you are using a <code>cache.xml</code> file to create a Cache Region declaratively, you can |
| include the following to create an LRU heap eviction controller: |
| <p/> |
| |
| <pre> |
| <region-attributes> |
| <eviction-attributes> |
| <lru-heap-percentage action="local-destroy" |
| </eviction-attributes> |
| </region-attributes> |
| </pre> |
| <p/></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP">heap LRU</a> eviction attributes with default |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and default |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html#DEFAULT">sizer</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUHeapAttributes-org.apache.geode.cache.util.ObjectSizer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUHeapAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUHeapAttributes(<a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP">heap LRU</a> eviction attributes with |
| default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and the given |
| <code>sizer</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sizer</code> - the sizer implementation used to determine the size of each entry in this region</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP">heap LRU</a> eviction attributes with default |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a> and the given |
| <code>sizer</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUHeapAttributes--"><code>createLRUHeapAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUHeapAttributes-org.apache.geode.cache.util.ObjectSizer-org.apache.geode.cache.EvictionAction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUHeapAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUHeapAttributes(<a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP">heap LRU</a> eviction attributes with |
| the given <code>evictionAction</code> and given <code>sizer</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sizer</code> - the sizer implementation used to determine the size of each entry in this region</dd> |
| <dd><code>evictionAction</code> - the way in which entries should be evicted</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP">heap LRU</a> eviction attributes with the given |
| <code>evictionAction</code> and given <code>sizer</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUHeapAttributes--"><code>createLRUHeapAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUMemoryAttributes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUMemoryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUMemoryAttributes()</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, default |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html#DEFAULT">sizer</a>, and default <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">maximum</a>. |
| <p/> |
| Creates EvictionAttributes for an eviction controller that will remove the least recently used |
| (LRU) entry from a region once the region reaches a certain byte capacity. Capacity is |
| determined by monitoring the size of entries added and evicted. Capacity is specified in terms |
| of megabytes. GemFire uses an efficient algorithm to determine the amount of space a region |
| entry occupies in the JVM. However, this algorithm may not yield optimal results for all kinds |
| of data. The user may provide their own algorithm for determining the size of objects by |
| implementing an <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util"><code>ObjectSizer</code></a>. |
| <p/> |
| <p/> |
| For a region with <a href="../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>DataPolicy.PARTITION</code></a>, the EvictionAttribute <code>maximum</code>, is |
| always equal to <a href="../../../../org/apache/geode/cache/PartitionAttributesFactory.html#setLocalMaxMemory-int-"><code>" local max memory "</code></a> |
| specified for the <a href="../../../../org/apache/geode/cache/PartitionAttributes.html" title="interface in org.apache.geode.cache"><code>PartitionAttributes</code></a>. It signifies the amount of memory allowed in the |
| region, collectively for its primary buckets and redundant copies for this JVM. It can be |
| different for the same region in different JVMs. |
| <p/> |
| If you are using a <code>cache.xml</code> file to create a Cache Region declaratively, you can |
| include the following to create an LRU memory eviction controller: |
| <p/> |
| |
| <pre> |
| <region-attributes> |
| <eviction-attributes> |
| <lru-memory-size maximum="10" action="local-destroy"> |
| <class-name>com.foo.MySizer</class-name> |
| <parameter name="name"> |
| <string>Super Sizer</string> |
| </parameter> |
| </lru-memory-size> |
| </eviction-attributes> |
| </region-attributes> |
| </pre></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes with default |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, default |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html#DEFAULT">sizer</a>, and default <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">maximum</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUMemoryAttributes-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUMemoryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUMemoryAttributes(int maximumMegabytes)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, default |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html#DEFAULT">sizer</a>, and given <code>maximumMegabytes</code>. |
| <p/> |
| <p/> |
| For a region with <a href="../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>DataPolicy.PARTITION</code></a>, even if maximumMegabytes are supplied, the |
| EvictionAttribute <code>maximum</code>, is always set to |
| <a href="../../../../org/apache/geode/cache/PartitionAttributesFactory.html#setLocalMaxMemory-int-"><code>" local max memory "</code></a> specified for |
| the <a href="../../../../org/apache/geode/cache/PartitionAttributes.html" title="interface in org.apache.geode.cache"><code>PartitionAttributes</code></a>. |
| <p/></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>maximumMegabytes</code> - the maximum allowed bytes in the Region</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes with default |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, default |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html#DEFAULT">sizer</a>, and given <code>maximumMegabytes</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes--"><code>createLRUMemoryAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUMemoryAttributes-int-org.apache.geode.cache.util.ObjectSizer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUMemoryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUMemoryAttributes(int maximumMegabytes, |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, given |
| <code>sizer</code>, and given <code>maximumMegabytes</code>. |
| <p/> |
| <p> |
| For a region with <a href="../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>DataPolicy.PARTITION</code></a>, even if maximumMegabytes are supplied, the |
| EvictionAttribute <code>maximum</code>, is always set to |
| <a href="../../../../org/apache/geode/cache/PartitionAttributesFactory.html#setLocalMaxMemory-int-"><code>" local max memory "</code></a> specified for |
| the <a href="../../../../org/apache/geode/cache/PartitionAttributes.html" title="interface in org.apache.geode.cache"><code>PartitionAttributes</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>maximumMegabytes</code> - the maximum allowed bytes in the Region</dd> |
| <dd><code>sizer</code> - calculates the size in bytes of the key and value for an entry.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes with default |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, given <code>sizer</code>, |
| and given <code>maximumMegabytes</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes--"><code>createLRUMemoryAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUMemoryAttributes-int-org.apache.geode.cache.util.ObjectSizer-org.apache.geode.cache.EvictionAction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUMemoryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUMemoryAttributes(int maximumMegabytes, |
| <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with the given <code>evictionAction</code>, given <code>sizer</code>, and given |
| <code>maximumMegabytes</code>. |
| <p/> |
| <p> |
| For a region with <a href="../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>DataPolicy.PARTITION</code></a>, even if maximumMegabytes are supplied, the |
| EvictionAttribute <code>maximum</code>, is always set to |
| <a href="../../../../org/apache/geode/cache/PartitionAttributesFactory.html#setLocalMaxMemory-int-"><code>" local max memory "</code></a> specified for |
| the <a href="../../../../org/apache/geode/cache/PartitionAttributes.html" title="interface in org.apache.geode.cache"><code>PartitionAttributes</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>maximumMegabytes</code> - the maximum allowed bytes in the Region</dd> |
| <dd><code>sizer</code> - calculates the size in bytes of the key and value for an entry.</dd> |
| <dd><code>evictionAction</code> - the action to take when the maximum has been reached.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes with the given |
| <code>evictionAction</code>, given <code>sizer</code>, and given |
| <code>maximumMegabytes</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes--"><code>createLRUMemoryAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUMemoryAttributes-org.apache.geode.cache.util.ObjectSizer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUMemoryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUMemoryAttributes(<a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with default <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, given |
| <code>sizer</code>, and default <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">maximum</a>. |
| <p/> |
| <p> |
| For a region with <a href="../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>DataPolicy.PARTITION</code></a>, even if maximumMegabytes are supplied, the |
| EvictionAttribute <code>maximum</code>, is always set to |
| <a href="../../../../org/apache/geode/cache/PartitionAttributesFactory.html#setLocalMaxMemory-int-"><code>" local max memory "</code></a> specified for |
| the <a href="../../../../org/apache/geode/cache/PartitionAttributes.html" title="interface in org.apache.geode.cache"><code>PartitionAttributes</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sizer</code> - calculates the size in bytes of the key and value for an entry.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes with default |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html#DEFAULT_EVICTION_ACTION">action</a>, given <code>sizer</code>, |
| and default <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">maximum</a></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 6.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes--"><code>createLRUMemoryAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLRUMemoryAttributes-org.apache.geode.cache.util.ObjectSizer-org.apache.geode.cache.EvictionAction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLRUMemoryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLRUMemoryAttributes(<a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> sizer, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</pre> |
| <div class="block">Creates and returns <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes |
| with given <code>evictionAction</code>, given <code>sizer</code>, and default |
| <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">maximum</a>. |
| <p/> |
| <p> |
| For a region with <a href="../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>DataPolicy.PARTITION</code></a>, even if maximumMegabytes are supplied, the |
| EvictionAttribute <code>maximum</code>, is always set to |
| <a href="../../../../org/apache/geode/cache/PartitionAttributesFactory.html#setLocalMaxMemory-int-"><code>" local max memory "</code></a> specified for |
| the <a href="../../../../org/apache/geode/cache/PartitionAttributes.html" title="interface in org.apache.geode.cache"><code>PartitionAttributes</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sizer</code> - calculates the size in bytes of the key and value for an entry.</dd> |
| <dd><code>evictionAction</code> - the action to take when the maximum has been reached.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY">memory LRU</a> eviction attributes with given |
| <code>evictionAction</code>, given <code>sizer</code>, and default |
| <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#DEFAULT_MEMORY_MAXIMUM">maximum</a></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 6.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes--"><code>createLRUMemoryAttributes()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getObjectSizer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getObjectSizer</h4> |
| <pre>public abstract <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util">ObjectSizer</a> getObjectSizer()</pre> |
| <div class="block">An <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util"><code>ObjectSizer</code></a> is used by the <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY"><code>EvictionAlgorithm.LRU_MEMORY</code></a> algorithm to measure |
| the size of each Entry as it is entered into a Region. A default implementation is provided, |
| see <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUMemoryAttributes--"><code>createLRUMemoryAttributes()</code></a> for more. An <a href="../../../../org/apache/geode/cache/util/ObjectSizer.html" title="interface in org.apache.geode.cache.util"><code>ObjectSizer</code></a> is used by |
| <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP"><code>EvictionAlgorithm.LRU_HEAP</code></a> to estimate how much heap will be saved when evicting a |
| region entry.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the sizer used by <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_MEMORY"><code>EvictionAlgorithm.LRU_MEMORY</code></a> or |
| <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html#LRU_HEAP"><code>EvictionAlgorithm.LRU_HEAP</code></a>, for all other algorithms null is returned.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAlgorithm--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAlgorithm</h4> |
| <pre>public abstract <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html" title="class in org.apache.geode.cache">EvictionAlgorithm</a> getAlgorithm()</pre> |
| <div class="block">The algorithm is used to identify entries that will be evicted.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a non-null EvictionAlgorithm instance reflecting the configured value or NONE when no |
| eviction controller has been configured.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getMaximum--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMaximum</h4> |
| <pre>public abstract int getMaximum()</pre> |
| <div class="block">The unit of this value is determined by the definition of the <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html" title="class in org.apache.geode.cache"><code>EvictionAlgorithm</code></a> set by |
| one of the creation methods e.g. <a href="../../../../org/apache/geode/cache/EvictionAttributes.html#createLRUEntryAttributes--"><code>createLRUEntryAttributes()</code></a>. |
| <ul> |
| <li>If the algorithm is LRU_ENTRY then the unit is entries. |
| <li>If the algorithm is LRU_MEMORY then the unit is megabytes. |
| <li>If the algorithm is LRU_HEAP then the unit is undefined and this method always returns |
| zero. |
| Note, in geode 1.4 and earlier, this method would throw UnsupportedOperationException for |
| LRU_HEAP. |
| </ul></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>maximum value used by the <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html" title="class in org.apache.geode.cache"><code>EvictionAlgorithm</code></a> which determines when the |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache"><code>EvictionAction</code></a> is performed.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAction--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAction</h4> |
| <pre>public abstract <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> getAction()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>action that the <a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html" title="class in org.apache.geode.cache"><code>EvictionAlgorithm</code></a> takes when the maximum value is reached.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="equals-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre>public boolean equals(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hashCode--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hashCode</h4> |
| <pre>public int hashCode()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="toString--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLIFOEntryAttributes-int-org.apache.geode.cache.EvictionAction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLIFOEntryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLIFOEntryAttributes(int maximumEntries, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">For internal use only.</span></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an EvictionAttributes for the LIFOCapacityController</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 5.7</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createLIFOMemoryAttributes-int-org.apache.geode.cache.EvictionAction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createLIFOMemoryAttributes</h4> |
| <pre>public static <a href="../../../../org/apache/geode/cache/EvictionAttributes.html" title="class in org.apache.geode.cache">EvictionAttributes</a> createLIFOMemoryAttributes(int maximumMegabytes, |
| <a href="../../../../org/apache/geode/cache/EvictionAction.html" title="class in org.apache.geode.cache">EvictionAction</a> evictionAction)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">For internal use only.</span></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an EvictionAttributes for the MemLIFOCapacityController</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 5.7</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="convertToConfigEvictionAttributes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>convertToConfigEvictionAttributes</h4> |
| <pre>public <a href="../../../../org/apache/geode/cache/configuration/RegionAttributesType.EvictionAttributes.html" title="class in org.apache.geode.cache.configuration">RegionAttributesType.EvictionAttributes</a> convertToConfigEvictionAttributes()</pre> |
| </li> |
| </ul> |
| <a name="isNoEviction--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>isNoEviction</h4> |
| <pre>public boolean isNoEviction()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/geode/cache/EvictionAlgorithm.html" title="class in org.apache.geode.cache"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/geode/cache/EvictionAttributesMutator.html" title="interface in org.apache.geode.cache"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/geode/cache/EvictionAttributes.html" target="_top">Frames</a></li> |
| <li><a href="EvictionAttributes.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |