blob: 12422fe5bbf84a77b5e645e0669175b949977488 [file] [log] [blame]
<!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_261) on Sat Sep 11 21:20:02 MSK 2021 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FifoEvictionPolicy (Ignite 2.11.0)</title>
<meta name="date" content="2021-09-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
<link rel='shortcut icon' href='https://ignite.apache.org/favicon.ico'/>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="FifoEvictionPolicy (Ignite 2.11.0)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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="class-use/FifoEvictionPolicy.html">Use</a></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>Prev&nbsp;Class</li>
<li><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicyFactory.html" title="class in org.apache.ignite.cache.eviction.fifo"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" target="_top">Frames</a></li>
<li><a href="FifoEvictionPolicy.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.ignite.cache.eviction.AbstractEvictionPolicy">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.ignite.cache.eviction.fifo</div>
<h2 title="Class FifoEvictionPolicy" class="title">Class FifoEvictionPolicy<span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span></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><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">org.apache.ignite.cache.eviction.AbstractEvictionPolicy</a><span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span></li>
<li>
<ul class="inheritance">
<li>org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy<span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span></li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../../../org/apache/ignite/cache/eviction/EvictionPolicy.html" title="interface in org.apache.ignite.cache.eviction">EvictionPolicy</a><span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span>, <a href="../../../../../../org/apache/ignite/mxbean/IgniteMBeanAware.html" title="interface in org.apache.ignite.mxbean">IgniteMBeanAware</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">FifoEvictionPolicy<span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span></span>
extends <a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a><span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span>
implements <a href="../../../../../../org/apache/ignite/mxbean/IgniteMBeanAware.html" title="interface in org.apache.ignite.mxbean">IgniteMBeanAware</a></pre>
<div class="block">Eviction policy based on <code>First In First Out (FIFO)</code> algorithm and supports batch eviction.
<p>
The eviction starts in the following cases:
<ul>
<li>The cache size becomes <code>batchSize</code> elements greater than the maximum size.</li>
<li>
The size of cache entries in bytes becomes greater than the maximum memory size.
The size of cache entry calculates as sum of key size and value size.
</li>
</ul>
<b>Note:</b>Batch eviction is enabled only if maximum memory limit isn't set (<code>maxMemSize == 0</code>).
<code>batchSize</code> elements will be evicted in this case. The default <code>batchSize</code> value is <code>1</code>.
<p>
This implementation is very efficient since it does not create any additional
table-like data structures. The <code>FIFO</code> ordering information is
maintained by attaching ordering metadata to cache entries.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../serialized-form.html#org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy">Serialized Form</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>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.ignite.cache.eviction.AbstractEvictionPolicy">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.ignite.cache.eviction.<a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a></h3>
<code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#memSize">memSize</a></code></li>
</ul>
</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">&nbsp;</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/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#FifoEvictionPolicy--">FifoEvictionPolicy</a></span>()</code>
<div class="block">Constructs FIFO eviction policy with all defaults.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#FifoEvictionPolicy-int-">FifoEvictionPolicy</a></span>(int&nbsp;max)</code>
<div class="block">Constructs FIFO eviction policy with maximum size.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#FifoEvictionPolicy-int-int-">FifoEvictionPolicy</a></span>(int&nbsp;max,
int&nbsp;batchSize)</code>
<div class="block">Constructs FIFO eviction policy with maximum size and given batch size.</div>
</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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#getCurrentSize--">getCurrentSize</a></span>()</code></td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><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></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#getMBean--">getMBean</a></span>()</code></td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/EvictableEntry.html" title="interface in org.apache.ignite.cache.eviction">EvictableEntry</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span><span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#queue--">queue</a></span>()</code>
<div class="block">Gets read-only view on internal <code>FIFO</code> queue in proper order.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#removeMeta-java.lang.Object-">removeMeta</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>&nbsp;meta)</code></td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction.fifo">FifoEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#setBatchSize-int-">setBatchSize</a></span>(int&nbsp;batchSize)</code>
<div class="block">Sets batch size.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction.fifo">FifoEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#setMaxMemorySize-long-">setMaxMemorySize</a></span>(long&nbsp;maxMemSize)</code>
<div class="block">Sets maximum allowed cache size in bytes.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction.fifo">FifoEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#setMaxSize-int-">setMaxSize</a></span>(int&nbsp;max)</code>
<div class="block">Sets maximum allowed size of cache before entry will start getting evicted.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#shrink0--">shrink0</a></span>()</code>
<div class="block">Tries to remove one item from queue.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<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/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#toString--">toString</a></span>()</code></td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html#touch-org.apache.ignite.cache.eviction.EvictableEntry-">touch</a></span>(<a href="../../../../../../org/apache/ignite/cache/eviction/EvictableEntry.html" title="interface in org.apache.ignite.cache.eviction">EvictableEntry</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span>&nbsp;entry)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.ignite.cache.eviction.AbstractEvictionPolicy">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.ignite.cache.eviction.<a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a></h3>
<code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#getBatchSize--">getBatchSize</a>, <a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#getCurrentMemorySize--">getCurrentMemorySize</a>, <a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#getMaxMemorySize--">getMaxMemorySize</a>, <a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#getMaxSize--">getMaxSize</a>, <a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#onEntryAccessed-boolean-org.apache.ignite.cache.eviction.EvictableEntry-">onEntryAccessed</a>, <a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#readExternal-java.io.ObjectInput-">readExternal</a>, <a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#shrink--">shrink</a>, <a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#writeExternal-java.io.ObjectOutput-">writeExternal</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;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#equals-java.lang.Object-" title="class or interface in java.lang">equals</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#hashCode--" title="class or interface in java.lang">hashCode</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">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="FifoEvictionPolicy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FifoEvictionPolicy</h4>
<pre>public&nbsp;FifoEvictionPolicy()</pre>
<div class="block">Constructs FIFO eviction policy with all defaults.</div>
</li>
</ul>
<a name="FifoEvictionPolicy-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FifoEvictionPolicy</h4>
<pre>public&nbsp;FifoEvictionPolicy(int&nbsp;max)</pre>
<div class="block">Constructs FIFO eviction policy with maximum size. Empty entries are allowed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>max</code> - Maximum allowed size of cache before entry will start getting evicted.</dd>
</dl>
</li>
</ul>
<a name="FifoEvictionPolicy-int-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>FifoEvictionPolicy</h4>
<pre>public&nbsp;FifoEvictionPolicy(int&nbsp;max,
int&nbsp;batchSize)</pre>
<div class="block">Constructs FIFO eviction policy with maximum size and given batch size. Empty entries are allowed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>max</code> - Maximum allowed size of cache before entry will start getting evicted.</dd>
<dd><code>batchSize</code> - Batch size.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getCurrentSize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentSize</h4>
<pre>public&nbsp;int&nbsp;getCurrentSize()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#getCurrentSize--">getCurrentSize</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Size of the container with trackable entries.</dd>
</dl>
</li>
</ul>
<a name="setMaxMemorySize-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxMemorySize</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction.fifo">FifoEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span>&nbsp;setMaxMemorySize(long&nbsp;maxMemSize)</pre>
<div class="block">Sets maximum allowed cache size in bytes.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#setMaxMemorySize-long-">setMaxMemorySize</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> for chaining.</dd>
</dl>
</li>
</ul>
<a name="setMaxSize-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxSize</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction.fifo">FifoEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span>&nbsp;setMaxSize(int&nbsp;max)</pre>
<div class="block">Sets maximum allowed size of cache before entry will start getting evicted.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#setMaxSize-int-">setMaxSize</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>max</code> - Maximum allowed size of cache before entry will start getting evicted.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> for chaining.</dd>
</dl>
</li>
</ul>
<a name="setBatchSize-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBatchSize</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction.fifo">FifoEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span>&nbsp;setBatchSize(int&nbsp;batchSize)</pre>
<div class="block">Sets batch size.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#setBatchSize-int-">setBatchSize</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>batchSize</code> - Batch size.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> for chaining.</dd>
</dl>
</li>
</ul>
<a name="queue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>queue</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/EvictableEntry.html" title="interface in org.apache.ignite.cache.eviction">EvictableEntry</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span><span class='angle_bracket'>&gt;</span>&nbsp;queue()</pre>
<div class="block">Gets read-only view on internal <code>FIFO</code> queue in proper order.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Read-only view ono internal <code>'FIFO'</code> queue.</dd>
</dl>
</li>
</ul>
<a name="removeMeta-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeMeta</h4>
<pre>protected&nbsp;boolean&nbsp;removeMeta(<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>&nbsp;meta)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#removeMeta-java.lang.Object-">removeMeta</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>meta</code> - Meta-information shipped to an entry.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>True</code> if meta was successfully removed from the container.</dd>
</dl>
</li>
</ul>
<a name="touch-org.apache.ignite.cache.eviction.EvictableEntry-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>touch</h4>
<pre>protected&nbsp;boolean&nbsp;touch(<a href="../../../../../../org/apache/ignite/cache/eviction/EvictableEntry.html" title="interface in org.apache.ignite.cache.eviction">EvictableEntry</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span>&nbsp;entry)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#touch-org.apache.ignite.cache.eviction.EvictableEntry-">touch</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entry</code> - Entry to touch.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>True</code> if queue has been changed by this call.</dd>
</dl>
</li>
</ul>
<a name="shrink0--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shrink0</h4>
<pre>protected&nbsp;int&nbsp;shrink0()</pre>
<div class="block">Tries to remove one item from queue.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html#shrink0--">shrink0</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/ignite/cache/eviction/AbstractEvictionPolicy.html" title="class in org.apache.ignite.cache.eviction">AbstractEvictionPolicy</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">K</a>,<a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" title="type parameter in FifoEvictionPolicy">V</a><span class='angle_bracket'>&gt;</span></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of bytes that was free. <code>-1</code> if queue is empty.</dd>
</dl>
</li>
</ul>
<a name="getMBean--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMBean</h4>
<pre>public&nbsp;<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>&nbsp;getMBean()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/apache/ignite/mxbean/IgniteMBeanAware.html#getMBean--">getMBean</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/ignite/mxbean/IgniteMBeanAware.html" title="interface in org.apache.ignite.mxbean">IgniteMBeanAware</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>MBean for this object.</dd>
</dl>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<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>&nbsp;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>&nbsp;in class&nbsp;<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>
</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="class-use/FifoEvictionPolicy.html">Use</a></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>Prev&nbsp;Class</li>
<li><a href="../../../../../../org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicyFactory.html" title="class in org.apache.ignite.cache.eviction.fifo"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/ignite/cache/eviction/fifo/FifoEvictionPolicy.html" target="_top">Frames</a></li>
<li><a href="FifoEvictionPolicy.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.ignite.cache.eviction.AbstractEvictionPolicy">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><table width="100%" border="0" cellspacing=0 cellpadding=0 style="padding: 5px"> <tr> <td> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <a target=_blank href="https://ignite.apache.org"><nobr>2021 Copyright &#169; Apache Software Foundation</nobr></a> </td> </tr> </tbody> </table> </td> <td width="100%" align="right" valign="center"> <a href="https://twitter.com/ApacheIgnite" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @ApacheIgnite</a> </td> </tr> <tr> <td colspan="2" valign="top" align="left"> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <b>Ignite Database and Caching Platform</b> </td> <td>:&nbsp;&nbsp; ver. <strong>2.11.0</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>:&nbsp;&nbsp; September 11 2021 </td> </tr> </tbody> </table> </td> </tr> </table></small></p>
</body>
</html>