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
import java.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.Map; | |
import java.util.Queue; | |
import java.util.concurrent.Executor; | |
/** | |
* This Executor warrants task ordering for tasks with same key (key have to implement hashCode and equal methods correctly). | |
*/ | |
public class OrderingExecutor implements Executor{ |