markResourceAbsent

fun markResourceAbsent(resourceId: T, permanent: Boolean = false)

Marks a resource attempt as having failed. This increments the number-of-tries counter and sets the time of the last attempt. When this method has been called AbsentResourceList.maxTrys times the resource is marked as absent until this absent resource list's AbsentResourceList.tryAgainInterval is reached.

Parameters

resourceId

The resource identifier.

permanent

Marks a resource attempt as having failed permanently. No attempt will ever again be made to retrieve the resource.