class GcListener implements NotificationListener, NotificationFilter {

    @Override
    public boolean isNotificationEnabled(Notification notification) {
        return notification.getType().equals(gcNotificationName);
    }

      GcListener(
        Log log,
        AtomicLong freeMemory,
        String[] poolNames,
        String gcNotificationName,
        MethodHandle getMemoryUsage
    );

}