GItem - public abstract class SingleInstanceQueueWorker<GItem> extends Object
| Constructor and Description |
|---|
SingleInstanceQueueWorker()
Only to create this as a dummy.
|
SingleInstanceQueueWorker(Object owner,
Queue<GItem> queue,
delight.concurrency.Concurrency con) |
| Modifier and Type | Method and Description |
|---|---|
SequentialOperationScheduler |
getThread() |
boolean |
isRunning() |
void |
offer(GItem item)
Schedules to process this item.
|
protected abstract void |
processItems(List<GItem> item)
It is guaranteed that this method is only called by one worker thread at
the time and that the items are forwarded FIFO how they were offered.
|
void |
setDelay(int delayInMs) |
void |
shutdown(delight.async.callbacks.ValueCallback<delight.functional.Success> cb) |
public SingleInstanceQueueWorker()
protected abstract void processItems(List<GItem> item)
item - public void shutdown(delight.async.callbacks.ValueCallback<delight.functional.Success> cb)
public void offer(GItem item)
item - public boolean isRunning()
public SequentialOperationScheduler getThread()
public void setDelay(int delayInMs)
Copyright © 2018. All rights reserved.