Package io.trino.plugin.hive.aws
Class AwsApiCallStats
java.lang.Object
io.trino.plugin.hive.aws.AwsApiCallStats
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAwsApiCallStats.ThrowingCallable<V,E extends Exception> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V,E extends Exception>
Vcall(AwsApiCallStats.ThrowingCallable<V, E> callable) io.airlift.stats.TimeStatgetTime()io.airlift.stats.CounterStatvoidrecordCall(long executionTimeNanos, boolean failure)
-
Constructor Details
-
AwsApiCallStats
public AwsApiCallStats()
-
-
Method Details
-
call
- Throws:
E extends Exception
-
getTime
public io.airlift.stats.TimeStat getTime() -
getTotalFailures
public io.airlift.stats.CounterStat getTotalFailures() -
recordCall
public void recordCall(long executionTimeNanos, boolean failure)
-