Package org.drools.runtime

Examples of org.drools.runtime.Channel.send()


      assertNotNull(channel_map);
      assertTrue(channel_map.size() == 3);
     
      Channel channel_1 = channel_map.get("channel_1");
      assertNotNull(channel_1);
      channel_1.send("test_1");
      assertEquals(1, TestChannel.count);
     
      Channel channel_2 = channel_map.get("channel_2");
      assertNotNull(channel_2);
      channel_2.send("test_2");
View Full Code Here


      channel_1.send("test_1");
      assertEquals(1, TestChannel.count);
     
      Channel channel_2 = channel_map.get("channel_2");
      assertNotNull(channel_2);
      channel_2.send("test_2");
      assertEquals(4, TestChannel.count);
     
      Channel channel_3 = channel_map.get("channel_3");
      assertNotNull(channel_3);
      assertTrue(channel_3 instanceof ServiceChannel);
View Full Code Here

        else if (channel_list_size > 1)
        {
          channel_map.put(channel_name, new Channel() {
            public void send(Object object) {
              for (Channel channel : channel_list) {
                channel.send(object);
              }
            }
          });
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.