class Application {
  /**
   * main entry.
   */
  public static void main(String[] args) throws Exception {<FILL_FUNCTION_BODY>}
}


    var queueManager = new QueueManager(10);

    // push some message to queue
    // Low Priority message
    for (var i = 0; i < 10; i++) {
      queueManager.publishMessage(new Message("Low Message Priority", 0));
    }

    // High Priority message
    for (var i = 0; i < 10; i++) {
      queueManager.publishMessage(new Message("High Message Priority", 1));
    }

    // run worker
    var worker = new Worker(queueManager);
    worker.run();


  
<no_super_class>