T
- public abstract class Consumer<T>
extends com.djrapitops.plugin.task.AbsRunnable
Modifier and Type | Field and Description |
---|---|
protected BlockingQueue<T> |
queue |
protected boolean |
run |
Constructor and Description |
---|
Consumer(BlockingQueue<T> queue,
String name)
Constructor, defines queue.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
clearVariables() |
protected abstract void |
consume(T toConsume) |
void |
run() |
protected void |
stop() |
protected final BlockingQueue<T> queue
protected boolean run
public Consumer(BlockingQueue<T> queue, String name)
queue
- Queue to consume from.name
- Name of the queue.public void run()
run
in class com.djrapitops.plugin.task.AbsRunnable
protected void stop()
protected abstract void clearVariables()
protected abstract void consume(T toConsume)
Copyright © 2017. All rights reserved.