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 com.google.common.base.Predicate<java.lang.String> |
IS_NOT_ONEOFF_LAMBA_TEMPLATE
Skip templates used for Lambda return value interpolation.
|
configuration| Constructor and Description |
|---|
AbstractStatsCollector(com.google.common.base.Predicate<java.lang.String> templatePredicate,
java.util.concurrent.TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
convert(long value) |
java.util.concurrent.TimeUnit |
getTimeUnit() |
boolean |
isApplied(java.lang.String mustacheName) |
compilationFinished, parsingStarted, renderingFinished, renderingStartedgetConfigurationKeys, checkNotInitialized, init, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initpublic static final com.google.common.base.Predicate<java.lang.String> IS_NOT_ONEOFF_LAMBA_TEMPLATE
Lambda.ONEOFF_LAMBDA_TEMPLATE_PREFIXpublic AbstractStatsCollector(com.google.common.base.Predicate<java.lang.String> templatePredicate,
java.util.concurrent.TimeUnit timeUnit)
templatePredicate - timeUnit - public java.util.concurrent.TimeUnit getTimeUnit()
public boolean isApplied(java.lang.String mustacheName)
protected long convert(long value)
value - Copyright © 2014. All Rights Reserved.