public interface WorkProducerJob
See also WorkConsumerJob.
| 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.
|
void start()
Make sure you call stop() for a clean shutdown if you called this method.
Once stopped, this method can be used to restart the producer.
void stop()
boolean isStarted()
void suspend()
void resume()
boolean isSuspended()
Copyright © 2018. All rights reserved.