public class LogBackgroundService extends BackgroundService
| Constructor and Description |
|---|
LogBackgroundService(@NonNull LogCollector collector,
@NonNull LogTransport logTransport)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
getNextScheduleDelayMilliseconds() |
protected void |
runOneIteration()
Run one iteration of the background service
|
protected void |
shutDown()
Shut down the background service
|
protected void |
startUp()
Start the background service
|
isRunning, start, stoppublic LogBackgroundService(@NonNull
@NonNull LogCollector collector,
@NonNull
@NonNull LogTransport logTransport)
collector - The LogMsg collectorlogTransport - Handles sending logs to destinationprotected void startUp()
BackgroundServicestartUp in class BackgroundServiceprotected long getNextScheduleDelayMilliseconds()
getNextScheduleDelayMilliseconds in class BackgroundServiceprotected void runOneIteration()
BackgroundServicerunOneIteration in class BackgroundServiceprotected void shutDown()
BackgroundServiceshutDown in class BackgroundServiceCopyright © 2019 Stackify, LLC. All rights reserved.