blob: a3d7561e6849b9f57c719e10c2f68351b9b6822b [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>MappedSequentialFileFactory (ActiveMQ Artemis Website 2.29.0 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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="MappedSequentialFileFactory (ActiveMQ Artemis Website 2.29.0 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":42,"i16":10,"i17":10,"i18":10,"i19":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance 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>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/MappedSequentialFileFactory.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="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses.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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">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 id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.activemq.artemis.core.io.mapped</a></div>
<h2 title="Class MappedSequentialFileFactory" class="title">Class MappedSequentialFileFactory</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" class="externalLink">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">org.apache.activemq.artemis.core.io.AbstractSequentialFileFactory</a></li>
<li>
<ul class="inheritance">
<li>org.apache.activemq.artemis.core.io.mapped.MappedSequentialFileFactory</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="../SequentialFileFactory.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFileFactory</a></code></dd>
</dl>
<hr>
<pre>public final class <span class="typeNameLabel">MappedSequentialFileFactory</span>
extends <a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">AbstractSequentialFileFactory</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="fields.inherited.from.class.org.apache.activemq.artemis.core.io.AbstractSequentialFileFactory">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.activemq.artemis.core.io.<a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">AbstractSequentialFileFactory</a></h3>
<code><a href="../AbstractSequentialFileFactory.html#alignment">alignment</a>, <a href="../AbstractSequentialFileFactory.html#bufferSize">bufferSize</a>, <a href="../AbstractSequentialFileFactory.html#bufferTimeout">bufferTimeout</a>, <a href="../AbstractSequentialFileFactory.html#critialErrorListener">critialErrorListener</a>, <a href="../AbstractSequentialFileFactory.html#criticalAnalyzer">criticalAnalyzer</a>, <a href="../AbstractSequentialFileFactory.html#dataSync">dataSync</a>, <a href="../AbstractSequentialFileFactory.html#EXECUTOR_TIMEOUT">EXECUTOR_TIMEOUT</a>, <a href="../AbstractSequentialFileFactory.html#journalDir">journalDir</a>, <a href="../AbstractSequentialFileFactory.html#maxIO">maxIO</a>, <a href="../AbstractSequentialFileFactory.html#timedBuffer">timedBuffer</a>, <a href="../AbstractSequentialFileFactory.html#writeExecutor">writeExecutor</a></code></li>
</ul>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.io.File,int,boolean,int,int,org.apache.activemq.artemis.core.io.IOCriticalErrorListener)">MappedSequentialFileFactory</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io" class="externalLink">File</a>&nbsp;directory,
int&nbsp;capacity,
boolean&nbsp;buffered,
int&nbsp;bufferSize,
int&nbsp;bufferTimeout,
<a href="../IOCriticalErrorListener.html" title="interface in org.apache.activemq.artemis.core.io">IOCriticalErrorListener</a>&nbsp;criticalErrorListener)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<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><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#allocateDirectBuffer(int)">allocateDirectBuffer</a></span>&#8203;(int&nbsp;size)</code></th>
<td class="colLast">
<div class="block">used for cases where you need direct buffer outside of the journal context.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#calculateBlockSize(int)">calculateBlockSize</a></span>&#8203;(int&nbsp;bytes)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#capacity()">capacity</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#capacity(int)">capacity</a></span>&#8203;(int&nbsp;capacity)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearBuffer(java.nio.ByteBuffer)">clearBuffer</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;buffer)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../SequentialFile.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFile</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createSequentialFile(java.lang.String)">createSequentialFile</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;fileName)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../SequentialFile.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFile</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createSequentialFile(java.lang.String,int)">createSequentialFile</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;fileName,
int&nbsp;capacity)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#disableBufferReuse()">disableBufferReuse</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#enableBufferReuse()">enableBufferReuse</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAlignment()">getAlignment</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isSupportsCallbacks()">isSupportsCallbacks</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newBuffer(int)">newBuffer</a></span>&#8203;(int&nbsp;size)</code></th>
<td class="colLast">
<div class="block">Note: You need to release the buffer if is used for reading operations.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newBuffer(int,boolean)">newBuffer</a></span>&#8203;(int&nbsp;size,
boolean&nbsp;zeroed)</code></th>
<td class="colLast">
<div class="block">Note: You need to release the buffer if is used for reading operations.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#releaseBuffer(java.nio.ByteBuffer)">releaseBuffer</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;buffer)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#releaseDirectBuffer(java.nio.ByteBuffer)">releaseDirectBuffer</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;buffer)</code></th>
<td class="colLast">
<div class="block">used for cases where you need direct buffer outside of the journal context.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAlignment(int)">setAlignment</a></span>&#8203;(int&nbsp;alignment)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDatasync(boolean)">setDatasync</a></span>&#8203;(boolean&nbsp;enabled)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#start()">start</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stop()">stop</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#wrapBuffer(byte%5B%5D)">wrapBuffer</a></span>&#8203;(byte[]&nbsp;bytes)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.apache.activemq.artemis.core.io.AbstractSequentialFileFactory">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.activemq.artemis.core.io.<a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">AbstractSequentialFileFactory</a></h3>
<code><a href="../AbstractSequentialFileFactory.html#activateBuffer(org.apache.activemq.artemis.core.io.SequentialFile)">activateBuffer</a>, <a href="../AbstractSequentialFileFactory.html#createDirs()">createDirs</a>, <a href="../AbstractSequentialFileFactory.html#deactivateBuffer()">deactivateBuffer</a>, <a href="../AbstractSequentialFileFactory.html#flush()">flush</a>, <a href="../AbstractSequentialFileFactory.html#getBufferSize()">getBufferSize</a>, <a href="../AbstractSequentialFileFactory.html#getCriticalAnalyzer()">getCriticalAnalyzer</a>, <a href="../AbstractSequentialFileFactory.html#getCriticalErrorListener()">getCriticalErrorListener</a>, <a href="../AbstractSequentialFileFactory.html#getDirectory()">getDirectory</a>, <a href="../AbstractSequentialFileFactory.html#getMaxIO()">getMaxIO</a>, <a href="../AbstractSequentialFileFactory.html#isDatasync()">isDatasync</a>, <a href="../AbstractSequentialFileFactory.html#listFiles(java.lang.String)">listFiles</a>, <a href="../AbstractSequentialFileFactory.html#onIOError(java.lang.Throwable,java.lang.String,java.lang.String)">onIOError</a>, <a href="../AbstractSequentialFileFactory.html#setCriticalErrorListener(org.apache.activemq.artemis.core.io.IOCriticalErrorListener)">setCriticalErrorListener</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="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" class="externalLink">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" class="externalLink">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" class="externalLink">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" class="externalLink">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" class="externalLink">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" class="externalLink">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" class="externalLink">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" class="externalLink">notifyAll</a>, <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" class="externalLink">toString</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" class="externalLink">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" class="externalLink">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" class="externalLink">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.apache.activemq.artemis.core.io.SequentialFileFactory">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.activemq.artemis.core.io.<a href="../SequentialFileFactory.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFileFactory</a></h3>
<code><a href="../SequentialFileFactory.html#onIOError(java.lang.Throwable,java.lang.String)">onIOError</a>, <a href="../SequentialFileFactory.html#onIOError(java.lang.Throwable,java.lang.String,org.apache.activemq.artemis.core.io.SequentialFile)">onIOError</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(java.io.File,int,boolean,int,int,org.apache.activemq.artemis.core.io.IOCriticalErrorListener)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>MappedSequentialFileFactory</h4>
<pre>public&nbsp;MappedSequentialFileFactory&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io" class="externalLink">File</a>&nbsp;directory,
int&nbsp;capacity,
boolean&nbsp;buffered,
int&nbsp;bufferSize,
int&nbsp;bufferTimeout,
<a href="../IOCriticalErrorListener.html" title="interface in org.apache.activemq.artemis.core.io">IOCriticalErrorListener</a>&nbsp;criticalErrorListener)</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="capacity(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capacity</h4>
<pre class="methodSignature">public&nbsp;<a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a>&nbsp;capacity&#8203;(int&nbsp;capacity)</pre>
</li>
</ul>
<a id="capacity()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capacity</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;capacity()</pre>
</li>
</ul>
<a id="createSequentialFile(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSequentialFile</h4>
<pre class="methodSignature">public&nbsp;<a href="../SequentialFile.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFile</a>&nbsp;createSequentialFile&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;fileName)</pre>
</li>
</ul>
<a id="createSequentialFile(java.lang.String,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSequentialFile</h4>
<pre class="methodSignature">public&nbsp;<a href="../SequentialFile.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFile</a>&nbsp;createSequentialFile&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;fileName,
int&nbsp;capacity)</pre>
</li>
</ul>
<a id="isSupportsCallbacks()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSupportsCallbacks</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isSupportsCallbacks()</pre>
</li>
</ul>
<a id="allocateDirectBuffer(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allocateDirectBuffer</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;allocateDirectBuffer&#8203;(int&nbsp;size)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../SequentialFileFactory.html#allocateDirectBuffer(int)">SequentialFileFactory</a></code></span></div>
<div class="block">used for cases where you need direct buffer outside of the journal context.
This is because the native layer has a method that can be reused in certain cases like paging</div>
</li>
</ul>
<a id="releaseDirectBuffer(java.nio.ByteBuffer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>releaseDirectBuffer</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;releaseDirectBuffer&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;buffer)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../SequentialFileFactory.html#releaseDirectBuffer(java.nio.ByteBuffer)">SequentialFileFactory</a></code></span></div>
<div class="block">used for cases where you need direct buffer outside of the journal context.
This is because the native layer has a method that can be reused in certain cases like paging</div>
</li>
</ul>
<a id="enableBufferReuse()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enableBufferReuse</h4>
<pre class="methodSignature">public&nbsp;<a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a>&nbsp;enableBufferReuse()</pre>
</li>
</ul>
<a id="disableBufferReuse()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>disableBufferReuse</h4>
<pre class="methodSignature">public&nbsp;<a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a>&nbsp;disableBufferReuse()</pre>
</li>
</ul>
<a id="newBuffer(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newBuffer</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;newBuffer&#8203;(int&nbsp;size)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../SequentialFileFactory.html#newBuffer(int)">SequentialFileFactory</a></code></span></div>
<div class="block">Note: You need to release the buffer if is used for reading operations. You don't need to do
it if using writing operations (AIO Buffer Lister will take of writing operations)</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the allocated ByteBuffer</dd>
</dl>
</li>
</ul>
<a id="newBuffer(int,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newBuffer</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;newBuffer&#8203;(int&nbsp;size,
boolean&nbsp;zeroed)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../SequentialFileFactory.html#newBuffer(int,boolean)">SequentialFileFactory</a></code></span></div>
<div class="block">Note: You need to release the buffer if is used for reading operations. You don't need to do
it if using writing operations (AIO Buffer Lister will take of writing operations)</div>
<dl>
<dd><code>zeroed</code> - if <code>true</code> the returned <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink"><code>ByteBuffer</code></a> must be zeroed, otherwise it tries to save zeroing it.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the allocated ByteBuffer</dd>
</dl>
</li>
</ul>
<a id="releaseBuffer(java.nio.ByteBuffer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>releaseBuffer</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;releaseBuffer&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;buffer)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SequentialFileFactory.html#releaseBuffer(java.nio.ByteBuffer)">releaseBuffer</a></code>&nbsp;in interface&nbsp;<code><a href="../SequentialFileFactory.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFileFactory</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../AbstractSequentialFileFactory.html#releaseBuffer(java.nio.ByteBuffer)">releaseBuffer</a></code>&nbsp;in class&nbsp;<code><a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">AbstractSequentialFileFactory</a></code></dd>
</dl>
</li>
</ul>
<a id="setDatasync(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDatasync</h4>
<pre class="methodSignature">public&nbsp;<a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a>&nbsp;setDatasync&#8203;(boolean&nbsp;enabled)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SequentialFileFactory.html#setDatasync(boolean)">setDatasync</a></code>&nbsp;in interface&nbsp;<code><a href="../SequentialFileFactory.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFileFactory</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../AbstractSequentialFileFactory.html#setDatasync(boolean)">setDatasync</a></code>&nbsp;in class&nbsp;<code><a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">AbstractSequentialFileFactory</a></code></dd>
</dl>
</li>
</ul>
<a id="wrapBuffer(byte[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapBuffer</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;wrapBuffer&#8203;(byte[]&nbsp;bytes)</pre>
</li>
</ul>
<a id="getAlignment()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAlignment</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;getAlignment()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SequentialFileFactory.html#getAlignment()">getAlignment</a></code>&nbsp;in interface&nbsp;<code><a href="../SequentialFileFactory.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFileFactory</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../AbstractSequentialFileFactory.html#getAlignment()">getAlignment</a></code>&nbsp;in class&nbsp;<code><a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">AbstractSequentialFileFactory</a></code></dd>
</dl>
</li>
</ul>
<a id="setAlignment(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAlignment</h4>
<pre class="methodSignature"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang" class="externalLink">@Deprecated</a>
public&nbsp;<a href="MappedSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io.mapped">MappedSequentialFileFactory</a>&nbsp;setAlignment&#8203;(int&nbsp;alignment)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SequentialFileFactory.html#setAlignment(int)">setAlignment</a></code>&nbsp;in interface&nbsp;<code><a href="../SequentialFileFactory.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFileFactory</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../AbstractSequentialFileFactory.html#setAlignment(int)">setAlignment</a></code>&nbsp;in class&nbsp;<code><a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">AbstractSequentialFileFactory</a></code></dd>
</dl>
</li>
</ul>
<a id="calculateBlockSize(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calculateBlockSize</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;calculateBlockSize&#8203;(int&nbsp;bytes)</pre>
</li>
</ul>
<a id="clearBuffer(java.nio.ByteBuffer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearBuffer</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;clearBuffer&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink">ByteBuffer</a>&nbsp;buffer)</pre>
</li>
</ul>
<a id="start()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>start</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;start()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SequentialFileFactory.html#start()">start</a></code>&nbsp;in interface&nbsp;<code><a href="../SequentialFileFactory.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFileFactory</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../AbstractSequentialFileFactory.html#start()">start</a></code>&nbsp;in class&nbsp;<code><a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">AbstractSequentialFileFactory</a></code></dd>
</dl>
</li>
</ul>
<a id="stop()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>stop</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;stop()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SequentialFileFactory.html#stop()">stop</a></code>&nbsp;in interface&nbsp;<code><a href="../SequentialFileFactory.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFileFactory</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../AbstractSequentialFileFactory.html#stop()">stop</a></code>&nbsp;in class&nbsp;<code><a href="../AbstractSequentialFileFactory.html" title="class in org.apache.activemq.artemis.core.io">AbstractSequentialFileFactory</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/MappedSequentialFileFactory.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="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses.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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">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 id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>