Skip to content

Commit

Permalink
Make the MBean implementation classes final
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilmkd committed Nov 13, 2021
1 parent b8367eb commit 2a73aed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package metrics
* @param queue
* the monitored local queue
*/
private[unsafe] class ComputePoolSampler(compute: WorkStealingThreadPool)
private[unsafe] final class ComputePoolSampler(compute: WorkStealingThreadPool)
extends ComputePoolSamplerMBean {
def getWorkerThreadCount(): Int = compute.getWorkerThreadCount()
def getActiveThreadCount(): Int = compute.getActiveThreadCount()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ package metrics
* @param queue
* the monitored local queue
*/
private[unsafe] class LocalQueueSampler(queue: LocalQueue) extends LocalQueueSamplerMBean {
private[unsafe] final class LocalQueueSampler(queue: LocalQueue)
extends LocalQueueSamplerMBean {
def getFiberCount(): Int = queue.getFiberCount()
def getHeadIndex(): Int = queue.getHeadIndex()
def getTailIndex(): Int = queue.getTailIndex()
Expand Down

0 comments on commit 2a73aed

Please sign in to comment.