org.requirementsascode.queue.EventQueue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of requirementsascodecore Show documentation
Show all versions of requirementsascodecore Show documentation
Enables you to define and run executable use case specifications, in your code.
package org.requirementsascode.queue;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.function.Consumer;
/**
* A simple event queue that forwards events to an event consumer, one at a
* time.
*
* To do that, it internally runs its own event producer thread.
*
* @author b_muth
*
*/
public class EventQueue {
private final BlockingDeque
© 2015 - 2024 Weber Informatics LLC | Privacy Policy