public class StatisticCollectorImpl extends LinkedHashMap<String,StatisticRecord> implements StatisticCollector, ParserGeneral
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
StatisticCollectorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
error(Query<?,?> query,
Throwable result) |
String |
generateIdentifier() |
int |
getBufferSize() |
Entities<StatisticRecord> |
getTarget() |
void |
ignoreExecutionTimeBelow(long milliseconds) |
boolean |
ignoreSuccessful(boolean ignore) |
void |
received(Query<?,?> query,
Integer result) |
protected boolean |
removeEldestEntry(Map.Entry<String,StatisticRecord> eldest) |
void |
send(Query<?,?> query) |
void |
setBufferSize(int bufferSize) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
toBD, toBigDecimal, toBigDecimal, toBigInteger, toBooleanBig, toBooleanSmall, toCurrentDateSQL, toCurrentTimestamp, toCurrentTimestampTimeZoneDefault, toDate, toDateSQL, toDateSQL, toDouble, toDouble, toFloat, toFloat, toInteger, toInteger, toLong, toLong, toShort, toSting, toSting, toString, toTime, toTime, toTimestamp, toTimestamp, toTimestamp, toTimeZone, toTimeZone, toTimeZone
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public void send(Query<?,?> query)
send
in interface StatisticCollector
public void received(Query<?,?> query, Integer result)
received
in interface StatisticCollector
public void error(Query<?,?> query, Throwable result)
error
in interface StatisticCollector
public Entities<StatisticRecord> getTarget()
getTarget
in interface StatisticCollector
public String generateIdentifier()
generateIdentifier
in interface StatisticCollector
public int getBufferSize()
getBufferSize
in interface StatisticCollector
public void setBufferSize(int bufferSize)
setBufferSize
in interface StatisticCollector
public boolean ignoreSuccessful(boolean ignore)
ignoreSuccessful
in interface StatisticCollector
public void ignoreExecutionTimeBelow(long milliseconds)
ignoreExecutionTimeBelow
in interface StatisticCollector
protected boolean removeEldestEntry(Map.Entry<String,StatisticRecord> eldest)
removeEldestEntry
in class LinkedHashMap<String,StatisticRecord>
Copyright © 2021. All rights reserved.