public abstract class BackgroundService
extends java.lang.Object
| Constructor and Description |
|---|
BackgroundService() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract long |
getNextScheduleDelayMilliseconds() |
boolean |
isRunning() |
protected abstract void |
runOneIteration()
Run one iteration of the background service
|
protected abstract void |
shutDown()
Shut down the background service
|
void |
start()
Start the background service/thread
|
protected abstract void |
startUp()
Start the background service
|
void |
stop()
Stops the background service/thread
|
protected abstract void startUp()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void runOneIteration()
throws java.lang.Exception
java.lang.Exceptionprotected abstract long getNextScheduleDelayMilliseconds()
protected abstract void shutDown()
throws java.lang.Exception
java.lang.Exceptionpublic void start()
public boolean isRunning()
public void stop()
Copyright © 2018 Stackify, LLC. All Rights Reserved.