Skip to content

Instantly share code, notes, and snippets.

@mgandin
mgandin / ConcurrentFooBarQix.java
Last active February 23, 2022 01:03
A small example to monitor Java Thread Pool with JMX
package fr.mga.concurrent;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;
public class ConcurrentFooBarQix implements Callable<String> {