Constructor and Description |
---|
CacheWorker(String workerName,
LinkedBlockingQueue<Job> jobQueue)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
run()
the method will try to get a job if one is avilable it will be retrived
and handled.
|
void |
shutDown()
the method sets the shutdown flag, when set the worker will stop it's
execution as soon as possible with out completing its work
|
public CacheWorker(String workerName, LinkedBlockingQueue<Job> jobQueue)
workerName
- the name of the given workerjobQueue
- the queue the worker will block on.public void run()
Copyright © 2017. All rights reserved.