title: is this java blocking queue variant possible?
body: <p>The following scneario is what i was thinking of:<br>
  - 2 Threads, 1 Producer, 1 Consumer<br>
  - T1 creates the Queue and starts the next thread, and is repsonsible for puting elements into the queue</p>
  
  <pre><code>ServerThread implements Runnable{
  
      run(){
          BlockingQueue q = new ArrayBlockingQueue(1024);
          ListenerThread lt = new ListenerThread8(q);
          lt.start();
  
          ....
  
          q.put(message);
  
      }
  }
  </code></pre>
  
  <p>-T2 will wait for elements in the queue and handles them</p>
  
  <pre><code>ListenerThread implements Runnable{
          ...
          run(){
              while(run){
                 if(!q.isEmpty){
                      sendMessage(q.getfirst());
                 }else{
                      sleep(1000);
                 }
              }
          }
     }
  </code></pre>
  
  <p>This is just a pseudo implementation of how i want to implement my part of the program.<br>
  -Could this work?<br>
  -And could this work with the static modifier on the queue?</p>