Create a gist now

Instantly share code, notes, and snippets.

anonymous /EvaluateQueuedItem.java Secret
Created Aug 29, 2017

What would you like to do?
class EvaluateQueuedItem extends Handler<ItemClass, QueueRow> {
private final Id<QueueRow> id;
public EvaluateQueuedItem(Id<QueueRow> id) {
this.id = id;
}
@Override
public void process() {
handleQueuedItem(id, this::handle, QueueRow.class);
}
private void handle(ItemClass item) {
// Handle the item.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment