kgraphql / com.apurebase.kgraphql.test.statistics / StatisticsCollector

StatisticsCollector

interface StatisticsCollector

Functions

createStatisticsSnapshot

returns a immutable copy of the statistics at the point of calling this method

abstract suspend fun createStatisticsSnapshot(): DataLoaderStatistics

incBatchCallsExecutedAsync

abstract suspend fun incBatchCallsExecutedAsync(): Deferred<Long>

incCacheHitCountAsync

abstract suspend fun incCacheHitCountAsync(): Deferred<Long>

incClearAllMethodCalledAsync

abstract suspend fun incClearAllMethodCalledAsync(): Deferred<Long>

incClearMethodCalledAsync

abstract suspend fun incClearMethodCalledAsync(): Deferred<Long>

incDispatchMethodCalledAsync

abstract suspend fun incDispatchMethodCalledAsync(): Deferred<Long>

incLoadAsyncMethodCalledAsync

abstract suspend fun incLoadAsyncMethodCalledAsync(): Deferred<Long>

incLoadManyAsyncMethodCalledAsync

abstract suspend fun incLoadManyAsyncMethodCalledAsync(): Deferred<Long>

incObjectsRequestedAsync

Increment by the number of requested objects

abstract suspend fun incObjectsRequestedAsync(objects: Long = 1): Deferred<Long>

incPrimeMethodCalledAsync

abstract suspend fun incPrimeMethodCalledAsync(): Deferred<Long>

Inheritors

SimpleStatisticsCollector

class SimpleStatisticsCollector : StatisticsCollector