Package io.smallrye.stork.spi
Interface CallStatisticsCollector
public interface CallStatisticsCollector
If you use
ServiceInstanceWithStatGathering, use an implementation of this class interface
for actually collecting information about calls made-
Method Summary
Modifier and TypeMethodDescriptiondefault voidRecords the completion of an operation.default voidrecordReply(long serviceInstanceId, long timeInNanos) Records the response from an operation.default voidrecordStart(long serviceInstanceId, boolean measureTime) Records the start of an operation.
-
Method Details
-
recordStart
default void recordStart(long serviceInstanceId, boolean measureTime) Records the start of an operation.- Parameters:
serviceInstanceId- the service instance idmeasureTime- whether the time must be measured
-
recordReply
default void recordReply(long serviceInstanceId, long timeInNanos) Records the response from an operation.- Parameters:
serviceInstanceId- the service instance idtimeInNanos- the duration of the operation in nanoseconds
-
recordEnd
Records the completion of an operation.- Parameters:
serviceInstanceId- the service instance iderror- the error thrown by the operation if the operation failed
-