public abstract class Worker<T> extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
_log |
protected LinkedBlockingQueue<T> |
_queue |
protected AtomicBoolean |
_running |
protected Thread |
_thread |
| Modifier and Type | Method and Description |
|---|---|
void |
addToQueue(T element) |
protected abstract void |
executeRefresh(T element) |
void |
run() |
void |
start() |
void |
stop() |
protected static final org.slf4j.Logger _log
protected final LinkedBlockingQueue<T> _queue
protected AtomicBoolean _running
protected Thread _thread
public Worker(String workerName)
Copyright © 2021. All rights reserved.