this.taskQueue = new DelayQueue<>();
this.queueConsumer = new Thread(new QueueConsumer(this.taskQueue), "PSSM_QUEUE");
this.queueConsumer.start();
this.clearLatestCacheCallback = new Callback() {
@Override
public void run(Session session, long timestamp) {
updateLatestAISCache(CACHE_SENTINEL);
}
};
this.enqueueClearAndUpdateCallback = new Callback() {
@Override
public void run(Session session, long timestamp) {
taskQueue.add(new UpdateLatestCacheTask(0));
taskQueue.add(new ClearAISMapTask(0, 10000));
}