public class LogBackgroundService extends BackgroundService
| Constructor and Description |
|---|
LogBackgroundService(LogCollector collector,
LogSender sender)
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(LogCollector collector, LogSender sender)
collector - The LogMsg collectorsender - The LogMsgGroup HTTP senderprotected void startUp()
BackgroundServicestartUp in class BackgroundServiceBackgroundService.startUp()protected long getNextScheduleDelayMilliseconds()
getNextScheduleDelayMilliseconds in class BackgroundServiceBackgroundService.getNextScheduleDelayMilliseconds()protected void runOneIteration()
BackgroundServicerunOneIteration in class BackgroundServiceBackgroundService.runOneIteration()protected void shutDown()
BackgroundServiceshutDown in class BackgroundServiceBackgroundService.shutDown()Copyright © 2019 Stackify, LLC. All rights reserved.