From 185a2d5ec0ca8f2f5c9417c1ee9e90e0f4d92579 Mon Sep 17 00:00:00 2001 From: Sam Pillsworth Date: Thu, 7 Sep 2023 21:19:22 -0400 Subject: [PATCH] publicise mbean traits --- .../src/main/scala/cats/effect/metrics/CpuStarvationMbean.scala | 2 +- .../cats/effect/unsafe/metrics/ComputePoolSamplerMBean.scala | 2 +- .../effect/unsafe/metrics/LiveFiberSnapshotTriggerMBean.scala | 2 +- .../cats/effect/unsafe/metrics/LocalQueueSamplerMBean.scala | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/jvm/src/main/scala/cats/effect/metrics/CpuStarvationMbean.scala b/core/jvm/src/main/scala/cats/effect/metrics/CpuStarvationMbean.scala index 7d2e7176da..1f303d8afc 100644 --- a/core/jvm/src/main/scala/cats/effect/metrics/CpuStarvationMbean.scala +++ b/core/jvm/src/main/scala/cats/effect/metrics/CpuStarvationMbean.scala @@ -19,7 +19,7 @@ package cats.effect.metrics /** * An MBean interfaces for monitoring when CPU starvation occurs. */ -private[metrics] trait CpuStarvationMBean { +trait CpuStarvationMBean { /** * Returns the number of times CPU starvation has occurred. diff --git a/core/jvm/src/main/scala/cats/effect/unsafe/metrics/ComputePoolSamplerMBean.scala b/core/jvm/src/main/scala/cats/effect/unsafe/metrics/ComputePoolSamplerMBean.scala index 249457c5ba..53cc0812c5 100644 --- a/core/jvm/src/main/scala/cats/effect/unsafe/metrics/ComputePoolSamplerMBean.scala +++ b/core/jvm/src/main/scala/cats/effect/unsafe/metrics/ComputePoolSamplerMBean.scala @@ -19,7 +19,7 @@ package cats.effect.unsafe.metrics /** * An MBean interface for monitoring a [[WorkStealingThreadPool]] backed compute thread pool. */ -private[unsafe] trait ComputePoolSamplerMBean { +trait ComputePoolSamplerMBean { /** * Returns the number of [[WorkerThread]] instances backing the [[WorkStealingThreadPool]]. diff --git a/core/jvm/src/main/scala/cats/effect/unsafe/metrics/LiveFiberSnapshotTriggerMBean.scala b/core/jvm/src/main/scala/cats/effect/unsafe/metrics/LiveFiberSnapshotTriggerMBean.scala index d9bbc38d6f..43db7d351a 100644 --- a/core/jvm/src/main/scala/cats/effect/unsafe/metrics/LiveFiberSnapshotTriggerMBean.scala +++ b/core/jvm/src/main/scala/cats/effect/unsafe/metrics/LiveFiberSnapshotTriggerMBean.scala @@ -19,7 +19,7 @@ package cats.effect.unsafe.metrics /** * An MBean interface for triggering live fiber snapshots. */ -private[unsafe] trait LiveFiberSnapshotTriggerMBean { +trait LiveFiberSnapshotTriggerMBean { /** * Obtains a snapshot of the fibers currently live on the [[IORuntime]] which this fiber diff --git a/core/jvm/src/main/scala/cats/effect/unsafe/metrics/LocalQueueSamplerMBean.scala b/core/jvm/src/main/scala/cats/effect/unsafe/metrics/LocalQueueSamplerMBean.scala index c2cc6a2065..a6bd723a14 100644 --- a/core/jvm/src/main/scala/cats/effect/unsafe/metrics/LocalQueueSamplerMBean.scala +++ b/core/jvm/src/main/scala/cats/effect/unsafe/metrics/LocalQueueSamplerMBean.scala @@ -19,7 +19,7 @@ package cats.effect.unsafe.metrics /** * An MBean interface for monitoring a single [[WorkerThread]] [[LocalQueue]]. */ -private[unsafe] trait LocalQueueSamplerMBean { +trait LocalQueueSamplerMBean { /** * Returns the number of fibers enqueued on the monitored [[LocalQueue]].