All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.fix.stdlib.concurrency.threads.ForkJoinThreadPoolGuard.kt Maven / Gradle / Ivy

There is a newer version: 3.1.4
Show newest version
package ru.fix.stdlib.concurrency.threads

import ru.fix.aggregating.profiler.Profiler
import ru.fix.dynamic.property.api.DynamicProperty
import java.util.concurrent.ForkJoinPool


open class ForkJoinThreadPoolGuard(profiler: Profiler,
                                   checkRate: DynamicProperty,
                                   pool: ForkJoinPool,
                                   queueThreshold: DynamicProperty,
                                   listener: (queueSize: Int, threadDump: String) -> Unit
) : ThreadPoolGuard(profiler,
        checkRate,
        { pool.queuedSubmissionCount > queueThreshold.get() },
        listener
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy