|
|
@ -25,8 +25,7 @@ import java.util.concurrent.TimeUnit; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* A singleton of a task queue implemented with zookeeper |
|
|
|
* A singleton of a task queue implemented using PriorityBlockingQueue |
|
|
|
* tasks queue implementation |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Service |
|
|
|
@Service |
|
|
|
public class TaskPriorityQueueImpl implements TaskPriorityQueue<TaskPriority> { |
|
|
|
public class TaskPriorityQueueImpl implements TaskPriorityQueue<TaskPriority> { |
|
|
|