public final class NoOpLoggingService extends java.lang.Object implements LoggingService
No-op implementation of the logging service used when no logging is necessary
Constructor and Description |
---|
NoOpLoggingService() |
Modifier and Type | Method and Description |
---|---|
void |
schedule(Manager statisticsManager,
ThreadPool threadPool)
Schedules and starts this service in the provided
ThreadPool |
void |
stop()
Stops this service
|
public void schedule(Manager statisticsManager, ThreadPool threadPool)
LoggingService
Schedules and starts this service in the provided ThreadPool
Statistics will be obtained by this service from the passes Manager
.
schedule
in interface LoggingService
statisticsManager
- provider of the statisticsthreadPool
- thread pool used to schedule the servicepublic void stop()
LoggingService
Stops this service
This operations does not have to be synchronous. Service may be stopped some time in the future after this call.
stop
in interface LoggingService