Record Class PerfLogManagerImpl.Janitor
java.lang.Object
java.lang.Record
org.tquadrat.foundation.perflog.internal.PerfLogManagerImpl.Janitor
- Record Components:
scheduledExecutorService- The reference to theScheduledExecutorServicethat needs to be terminated.
- All Implemented Interfaces:
Runnable
- Enclosing class:
PerfLogManagerImpl
@ClassVersion(sourceVersion="$Id: PerfLogManagerImpl.java 1258 2026-06-04 18:33:06Z tquadrat $")
@API(status=INTERNAL,
since="0.25.0")
private static record PerfLogManagerImpl.Janitor(ScheduledExecutorService scheduledExecutorService)
extends Record
implements Runnable
The janitor that takes care of the housekeeping for an
instance of
PerfLogManager
in case that was not properly closed.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: PerfLogManagerImpl.java 1258 2026-06-04 18:33:06Z tquadrat $
- Since:
- 0.25.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.perflog.internal.PerfLogManagerImpl.Janitor"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ScheduledExecutorServiceThe field for thescheduledExecutorServicerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJanitor(ScheduledExecutorService scheduledExecutorService) Creates an instance of aJanitorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final voidrun()Returns the value of thescheduledExecutorServicerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
scheduledExecutorService
The field for thescheduledExecutorServicerecord component.
-
-
Constructor Details
-
Janitor
Creates an instance of aJanitorrecord class.- Parameters:
scheduledExecutorService- the value for thescheduledExecutorServicerecord component
-
-
Method Details
-
run
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
scheduledExecutorService
Returns the value of thescheduledExecutorServicerecord component.- Returns:
- the value of the
scheduledExecutorServicerecord component
-
