Interface PerfLogManager

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
PerfLogManagerImpl

@ClassVersion(sourceVersion="$Id: PerfLogManager.java 1246 2026-05-16 14:07:00Z tquadrat $") @API(status=STABLE, since="0.25.0") public sealed interface PerfLogManager extends AutoCloseable permits PerfLogManagerImpl

This interface describes the Performance Logging and Monitoring Manager that is the frontend to the Performance Logging and Monitoring MBean that does the work behind the scenes.

Instances of PerfLogManager are thread-safe, so they can be created as static:

0102
03/**
04 *  The interface to the PerfLog MBean.
05 */
06private static final PerfLogManager PERFLOGMANAGER;
07
0809
10static
11{
12    //---* Initialise the Performance Logging *--------------------------------
13    PERFLOGMANAGER = PerfLogUtils.createPerfLogManager();
14}
15

or as attributes as well.

Because PerfLogManager implements AutoCloseable it can be used with try-with-resources, too:

0102
03//---* Initialise the Performance Logging *------------------------------------
04try( final var perfLogManager = PerfLogUtils.createPerfLogManager() )
05{
06    // Do something …
07
0809}
10

If an instance is abandoned, it will perform an automatic clean-up.

Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: PerfLogManager.java 1246 2026-05-16 14:07:00Z tquadrat $
Since:
0.25.0
UML Diagram
UML Diagram for "org.tquadrat.foundation.perflog.PerfLogManager"

UML Diagram for "org.tquadrat.foundation.perflog.PerfLogManager"

UML Diagram for "org.tquadrat.foundation.perflog.PerfLogManager"