@Component public class WorkProducerJobImpl extends Object implements WorkProducerJob
| Constructor and Description |
|---|
WorkProducerJobImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStarted()
Returns whether the producer is currently started.
|
boolean |
isSuspended()
Returns whether the producer is currently suspended.
|
void |
resume()
Resumes the producer.
|
void |
start()
Starts the producer.
|
void |
stop()
Stops the producer.
|
void |
suspend()
Suspends the producer without shutting it down.
|
public void start()
WorkProducerJob
Make sure you call WorkProducerJob.stop() for a clean shutdown if you called this method.
Once stopped, this method can be used to restart the producer.
start in interface WorkProducerJobpublic void stop()
WorkProducerJobstop in interface WorkProducerJobpublic boolean isStarted()
WorkProducerJobisStarted in interface WorkProducerJobpublic void suspend()
WorkProducerJobsuspend in interface WorkProducerJobpublic void resume()
WorkProducerJobresume in interface WorkProducerJobpublic boolean isSuspended()
WorkProducerJobisSuspended in interface WorkProducerJobCopyright © 2018. All rights reserved.