public class AbstractStatsCollector extends AbstractMustacheListener
TimeUnit.MILLISECONDS
is used.
It's also possible to specify a Predicate
to filter out some
templates. By default templates used for Lambda interpolation are skipped.Modifier and Type | Class and Description |
---|---|
static class |
AbstractStatsCollector.Stats |
Modifier and Type | Field and Description |
---|---|
static Predicate<String> |
IS_NOT_ONEOFF_LAMBA_TEMPLATE
Skip templates used for Lambda return value interpolation.
|
configuration
Constructor and Description |
---|
AbstractStatsCollector(Predicate<String> templatePredicate,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
protected long |
convert(long value) |
TimeUnit |
getTimeUnit() |
boolean |
isApplied(String mustacheName) |
compilationFinished, parsingStarted, renderingFinished, renderingStarted
checkNotInitialized, init, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationKeys, init
public static final Predicate<String> IS_NOT_ONEOFF_LAMBA_TEMPLATE
Lambda.ONEOFF_LAMBDA_TEMPLATE_PREFIX
Copyright © 2017. All rights reserved.