newBacklogHealthCheck

fun newBacklogHealthCheck(backlogSize: Int, size: Int): HealthCheck

Creates a HealthCheck that reports unhealthy when the backlog size meets or exceeds the given threshold.

Return

a HealthCheck that monitors backlog size.

Parameters

backlogSize

the current backlog size to evaluate.

size

the threshold above which the check is considered unhealthy.