-
-
Save anonymous/d83d9854fb942ea137d59a295188e027 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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