org.javasimon.callback.logging
Class SplitThresholdLogTemplate
java.lang.Object
org.javasimon.callback.logging.LogTemplate<C>
org.javasimon.callback.logging.DelegateLogTemplate<Split>
org.javasimon.callback.logging.SplitThresholdLogTemplate
public class SplitThresholdLogTemplate
- extends DelegateLogTemplate<Split>
Log template which awakes only when split is longer than given threshold.
- Author:
- gquintana
|
Field Summary |
private long |
threshold
Split duration theshold |
| Methods inherited from class org.javasimon.callback.logging.LogTemplate |
log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
threshold
private final long threshold
- Split duration theshold
SplitThresholdLogTemplate
public SplitThresholdLogTemplate(LogTemplate delegate,
long threshold)
- Constructor
- Parameters:
delegate - Concreate log templatethreshold - Theshold
isEnabled
public boolean isEnabled(Split split)
- Description copied from class:
DelegateLogTemplate
- Tell whether logging is enabled.
- Overrides:
isEnabled in class DelegateLogTemplate<Split>
- Returns:
- Logging enabled
getThreshold
public long getThreshold()
Copyright © 2013. All Rights Reserved.