Example #1
0
 /**
  * enqueue a received message
  *
  * @throws InterruptedException
  */
 protected void enqueue(List<TaskMessage> msgs, String from) throws InterruptedException {
   if (null == msgs || msgs.size() == 0 || closing) {
     return;
   }
   addReceiveCount(from, msgs.size());
   if (_cb != null) {
     _cb.recv(msgs);
   }
 }