blob: 13493ee57f64a5ed1a5b766fed85a0d7d1263bdc [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.4) on Fri Sep 20 12:10:30 CEST 2019 -->
<title>PerformanceLevel (Apache SIS 1.0 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2019-09-20">
<meta name="keywords" content="org.apache.sis.util.logging.PerformanceLevel class">
<meta name="keywords" content="PERFORMANCE">
<meta name="keywords" content="SLOW">
<meta name="keywords" content="SLOWER">
<meta name="keywords" content="SLOWEST">
<meta name="keywords" content="forDuration()">
<meta name="keywords" content="getMinDuration()">
<meta name="keywords" content="setMinDuration()">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../sis.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="PerformanceLevel (Apache SIS 1.0 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":9,"i1":10,"i2":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</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/PerformanceLevel.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" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&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.sis.util.logging</a></div>
<h2 title="Class PerformanceLevel" class="title">Class PerformanceLevel</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">Object</a></li>
<li>
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging" class="externalLink">Level</a></li>
<li>
<ul class="inheritance">
<li>PerformanceLevel</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="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io" class="externalLink">Serializable</a></code></dd>
</dl>
<hr>
<pre>public final class <span class="typeNameLabel">PerformanceLevel</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging" class="externalLink">Level</a></pre>
<div class="block">Logging levels for measurements of execution time. Different logging levels - <a href="#SLOW"><code>SLOW</code></a>,
<a href="#SLOWER"><code>SLOWER</code></a> and <a href="#SLOWEST"><code>SLOWEST</code></a> - are provided in order to log only the events taking
more than some time duration. For example the console could log only the slowest events,
while a file could log all events considered slow.
<p>Every levels defined in this class have a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#intValue()" title="class or interface in java.util.logging" class="externalLink">value</a> between the
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#FINE" title="class or interface in java.util.logging" class="externalLink"><code>Level​.FINE</code></a> and <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#CONFIG" title="class or interface in java.util.logging" class="externalLink"><code>Level​.CONFIG</code></a> values. Consequently performance logging are
disabled by default, and enabling them imply enabling configuration logging too. This is
done that way because the configuration typically have a significant impact on performance.</p>
<div class="section">Enabling performance logging</div>
Performance logging can be enabled in various ways. Among others:
<ul>
<li>The <code>$JAVA_HOME/lib/logging​.properties</code> file can be edited in order to log
messages at the <code>FINE</code> level, at least for the packages of interest.</li>
<li>The <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html?is-external=true#setLevel(java.util.logging.Level)" title="class or interface in java.util.logging" class="externalLink"><code>Logger​.set­Level(Level)</code></a> can be invoked, together with
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html?is-external=true#setLevel(java.util.logging.Level)" title="class or interface in java.util.logging" class="externalLink"><code>Handler​.set­Level(Level)</code></a> on all relevant logging targets
(console or file, <i>etc.</i>).</li>
<li>The <a href="MonolineFormatter.html#install(java.util.logging.Logger,java.util.logging.Level)"><code>Monoline­Formatter​.install(Logger, Level)</code></a> convenience
method can be invoked.</li>
</ul></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>0.3</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../serialized-form.html#org.apache.sis.util.logging.PerformanceLevel">Serialized Form</a></dd>
<p><font size="-1">Defined in the <code>sis-utility</code> module</font></p>
</dl>
</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>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PERFORMANCE">PERFORMANCE</a></span></code></th>
<td class="colLast">
<div class="block">The level for logging all time measurements, regardless of their duration.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#SLOW">SLOW</a></span></code></th>
<td class="colLast">
<div class="block">The level for logging relatively slow events.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#SLOWER">SLOWER</a></span></code></th>
<td class="colLast">
<div class="block">The level for logging only events slower than the ones logged at the <a href="#SLOW"><code>SLOW</code></a> level.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#SLOWEST">SLOWEST</a></span></code></th>
<td class="colLast">
<div class="block">The level for logging only slowest events.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="fields.inherited.from.class.Level">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging" class="externalLink">Level</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#ALL" title="class or interface in java.util.logging" class="externalLink">ALL</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#CONFIG" title="class or interface in java.util.logging" class="externalLink">CONFIG</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#FINE" title="class or interface in java.util.logging" class="externalLink">FINE</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#FINER" title="class or interface in java.util.logging" class="externalLink">FINER</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#FINEST" title="class or interface in java.util.logging" class="externalLink">FINEST</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#INFO" title="class or interface in java.util.logging" class="externalLink">INFO</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#OFF" title="class or interface in java.util.logging" class="externalLink">OFF</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#SEVERE" title="class or interface in java.util.logging" class="externalLink">SEVERE</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#WARNING" title="class or interface in java.util.logging" class="externalLink">WARNING</a></code></li>
</ul>
</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="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static <a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forDuration(long,java.util.concurrent.TimeUnit)">forDuration</a></span>&#8203;(long&nbsp;duration,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent" class="externalLink">TimeUnit</a>&nbsp;unit)</code></th>
<td class="colLast">
<div class="block">Returns the level to use for logging an event of the given duration.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMinDuration(java.util.concurrent.TimeUnit)">getMinDuration</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent" class="externalLink">TimeUnit</a>&nbsp;unit)</code></th>
<td class="colLast">
<div class="block">Returns the minimal duration for logging an event at this level.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMinDuration(long,java.util.concurrent.TimeUnit)">setMinDuration</a></span>&#8203;(long&nbsp;duration,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent" class="externalLink">TimeUnit</a>&nbsp;unit)</code></th>
<td class="colLast">
<div class="block">Sets the minimal duration for logging an event at this level.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.Level">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging" class="externalLink">Level</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.util.logging" class="externalLink">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#getLocalizedName()" title="class or interface in java.util.logging" class="externalLink">get­Localized­Name</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#getName()" title="class or interface in java.util.logging" class="externalLink">get­Name</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#getResourceBundleName()" title="class or interface in java.util.logging" class="externalLink">get­Resource­Bundle­Name</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#hashCode()" title="class or interface in java.util.logging" class="externalLink">hash­Code</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#intValue()" title="class or interface in java.util.logging" class="externalLink">int­Value</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#parse(java.lang.String)" title="class or interface in java.util.logging" class="externalLink">parse</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#toString()" title="class or interface in java.util.logging" class="externalLink">to­String</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.Object">
<!-- -->
</a>
<h3>Methods inherited from class&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" 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#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">get­Class</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">notify­All</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>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="PERFORMANCE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PERFORMANCE</h4>
<pre>public static final&nbsp;<a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a> PERFORMANCE</pre>
<div class="block">The level for logging all time measurements, regardless of their duration.
The <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html?is-external=true#intValue()" title="class or interface in java.util.logging" class="externalLink">value</a> of this level is 600.</div>
</li>
</ul>
<a id="SLOW">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SLOW</h4>
<pre>public static final&nbsp;<a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a> SLOW</pre>
<div class="block">The level for logging relatively slow events. By default, only events having an execution
time equals or greater than 0.1 second are logged at this level. However this threshold
can be changed by a call to <code>SLOW.<a href="#setMinDuration(long,java.util.concurrent.TimeUnit)">set­Min­Duration(long, Time­Unit)</a></code>.</div>
</li>
</ul>
<a id="SLOWER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SLOWER</h4>
<pre>public static final&nbsp;<a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a> SLOWER</pre>
<div class="block">The level for logging only events slower than the ones logged at the <a href="#SLOW"><code>SLOW</code></a> level.
By default, only events having an execution time equals or greater than 1 second are
logged at this level. However this threshold can be changed by a call to
<code>SLOWER.<a href="#setMinDuration(long,java.util.concurrent.TimeUnit)">set­Min­Duration(long, Time­Unit)</a></code>.</div>
</li>
</ul>
<a id="SLOWEST">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SLOWEST</h4>
<pre>public static final&nbsp;<a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a> SLOWEST</pre>
<div class="block">The level for logging only slowest events. By default, only events having an execution
time equals or greater than 5 seconds are logged at this level. However this threshold
can be changed by a call to <code>SLOWEST.<a href="#setMinDuration(long,java.util.concurrent.TimeUnit)">set­Min­Duration(long, Time­Unit)</a></code>.</div>
</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="forDuration(long,java.util.concurrent.TimeUnit)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>forDuration</h4>
<pre class="methodSignature">public static&nbsp;<a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a>&nbsp;forDuration&#8203;(long&nbsp;duration,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent" class="externalLink">TimeUnit</a>&nbsp;unit)</pre>
<div class="block">Returns the level to use for logging an event of the given duration.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>duration</code> - the event duration.</dd>
<dd><code>unit</code> - the unit of the given duration value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the level to use for logging an event of the given duration.</dd>
</dl>
</li>
</ul>
<a id="getMinDuration(java.util.concurrent.TimeUnit)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMinDuration</h4>
<pre class="methodSignature">public&nbsp;long&nbsp;getMinDuration&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent" class="externalLink">TimeUnit</a>&nbsp;unit)</pre>
<div class="block">Returns the minimal duration for logging an event at this level.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>unit</code> - the unit in which to express the minimal duration.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the minimal duration in the given unit.</dd>
</dl>
</li>
</ul>
<a id="setMinDuration(long,java.util.concurrent.TimeUnit)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setMinDuration</h4>
<pre class="methodSignature"><a href="../Configuration.html" title="annotation in org.apache.sis.util">@Configuration</a>
public&nbsp;void&nbsp;setMinDuration&#8203;(long&nbsp;duration,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent" class="externalLink">TimeUnit</a>&nbsp;unit)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a></pre>
<div class="block">Sets the minimal duration for logging an event at this level. Invoking this method
may have an indirect impact of other performance levels:
<ul>
<li>If the given duration is longer than the duration of slower levels, then the later
are also set to the given duration.</li>
<li>If the given duration is shorter than the duration of faster levels, then the later
are also set to the given duration.</li>
</ul>
<div class="note"><b>Usage note:</b>
The duration of the <a href="#PERFORMANCE"><code>PERFORMANCE</code></a> level can not be modified: it is always zero.
However invoking this method on the <code>PERFORMANCE</code> field will ensure that every
<code>SLOW*</code> levels will have at least the given duration.</div></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>duration</code> - the minimal duration.</dd>
<dd><code>unit</code> - the unit of the given duration value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­Argument­Exception</a></code> - if the given duration is negative.</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/PerformanceLevel.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" 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>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&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; 2010&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>