class TimeLimitMaintainerTask implements MaintainerTask {

    @Override
    public void run() {
        File messagesFolder = logFilePath.getLogFilePath().toFile();
        int noDeletedFiles = deleteFilesAboveFileLimit(messagesFolder);
        deletedFileProvider.setDeletedFilesCount(noDeletedFiles);
        logMaintenanceResult(noDeletedFiles);
    }

    public  TimeLimitMaintainerTask();

}