protected class FeedCache.FeedLoadWorker extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
private CountDownLatch |
_endSignal |
private String |
_feedUrl |
protected boolean |
_initialized
Is the engine initialized ?
|
protected Logger |
_logger
The logger.
|
Constructor and Description |
---|
FeedLoadWorker(String feedUrl,
CountDownLatch endSignal)
Build a worker loading a specific feed.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_checkInitialization()
Check the initialization and throw an exception if not initialized.
|
protected void |
_dispose()
Dispose of the resources and looked-up components.
|
void |
initialize(Logger logger)
Initialize the feed loader.
|
void |
run() |
protected boolean _initialized
private final CountDownLatch _endSignal
FeedLoadWorker(String feedUrl, CountDownLatch endSignal)
feedUrl
- the feed to load.endSignal
- the signal when done.public void initialize(Logger logger) throws ContextException, ServiceException
logger
- the logger.ContextException
- if the context is badly formedServiceException
- if somthing goes wrong with the serviceprotected void _checkInitialization()
protected void _dispose()