2 Replies Latest reply on Jul 11, 2013 10:24 PM by ved singh

    Producer getting notified for block or drop state

    ved singh Newbie

      Hi All,

       

      We were doing poc with BLOCK or DROP address policy. We found that when we choose BLOCK, the producer thread gets stuck ( gets in to WAITING state),once the queue gets in to blocked state.

      And when we choose to DROP, the messages silently get dropped, once the queue size is full, with produced thread in runnable state. This is what we expected and both the policy works like a charm as it is supposed to work.

       

      But is there a way,wherein the producer can be notified that the queue has gone into either BLOCK state or has started dropping message.

       

      Thanks,

      Ved