Examples of send()


Examples of kafka.javaapi.producer.Producer.send()

    Producer producer = new Producer(new ProducerConfig(props));
    try {
      for (byte[] message : monitorSet) {
        KeyedMessage keyedMessage = new KeyedMessage(
            "TrackingMonitoringEvent", message);
        producer.send(keyedMessage);
      }
    } catch (Exception e) {
      e.printStackTrace();
      System.out.println(topic + " issue sending tracking to "
                    + brokerList.toString());
View Full Code Here

Examples of kafka.producer.SimpleProducer.send()

      list.add(message);
    }
    // send events
    System.out.println(" send " + list.size() + " " + _topic
        + " count events to " + producerId);
    producer.send(_topic, new ByteBufferMessageSet(list));

    // close all producers
    for (SimpleProducer p : _producers) {
      p.close();
    }
View Full Code Here

Examples of lazyj.mail.Sendmail.send()

    mail.sSubject = m.sSubject!=null ? m.sSubject : this.sDefaultSubject;
   
    if (mail.sBody==null || mail.sSubject==null)
      return false;
   
    return sm.send(mail);
  }

}
View Full Code Here

Examples of lotus.domino.Document.send()

          doc.appendItemValue("Principal", from);
          doc.appendItemValue("iNetFrom", from);
          doc.appendItemValue("$iNetPrincipal", from);
        }
 
        doc.send(false);
        doc.recycle();
 
        // Set mime conversion back to what it was originally
      } finally {
        session.setConvertMIME(convertMime);
View Full Code Here

Examples of marauroa.functional.SimpleClient.send()

                   * Send an action to server.
                   */
                  RPAction action = new RPAction();
                  action.put("type", "chat");
                  action.put("text", "Hello world");
                  client.send(action);
                }

                if (rand.nextInt() % 1000 == 0) {
                  /*
                   * Randomly close the connection
View Full Code Here

Examples of me.taylorkelly.bigbrother.datablock.BBDataBlock.send()

    }

    public static void create(Location location, List<Block> blockList, String world) {
        for (Block block : blockList) {
            BBDataBlock dataBlock = new MiscExplosion(ENVIRONMENT, block, world);
            dataBlock.send();
            if (block.getType() == Material.TNT) {
                TNTLogger.log(ENVIRONMENT, block);
            }
        }
    }
View Full Code Here

Examples of me.taylorkelly.bigbrother.datablock.BrokenBlock.send()

            BBPlayerInfo pi = BBUsersTable.getInstance().getUserByName(player.getName());
            plugin.closeChestIfOpen(pi);
            if (BBSettings.blockBreak && pi.getWatched()) {
                Block block = event.getBlock();
                BrokenBlock dataBlock = new BrokenBlock(player.getName(), block, block.getWorld().getName());
                dataBlock.send();
            }
        }
    }

    @Override
View Full Code Here

Examples of me.taylorkelly.bigbrother.datablock.ButtonPress.send()

                        }
                        break;
                    case STONE_BUTTON:
                        if (BBSettings.buttonPress) {
                            ButtonPress buttonDataBlock = new ButtonPress(event.getPlayer().getName(), block, block.getWorld().getName());
                            buttonDataBlock.send();
                        }
                        break;
                    case CHEST:
                        if (BBSettings.chestChanges) {
                            BBDataBlock chestDataBlock = new ChestOpen(event.getPlayer().getName(), block, block.getWorld().getName());
View Full Code Here

Examples of me.taylorkelly.bigbrother.datablock.Chat.send()

        final Player player = event.getPlayer();
        BBPlayerInfo pi = BBUsersTable.getInstance().getUserByName(player.getName());
        plugin.closeChestIfOpen(pi);
        if (BBSettings.chat && pi.getWatched()) {
            Chat dataBlock = new Chat(player, event.getMessage(), player.getWorld().getName());
            dataBlock.send();
        }
    }
   
    @Override
    public void onPlayerPickupItem(PlayerPickupItemEvent event) {
View Full Code Here

Examples of me.taylorkelly.bigbrother.datablock.ChestOpen.send()

                        }
                        break;
                    case CHEST:
                        if (BBSettings.chestChanges) {
                            BBDataBlock chestDataBlock = new ChestOpen(event.getPlayer().getName(), block, block.getWorld().getName());
                            chestDataBlock.send();
                        }
                        break;
                    }
                    break;
                }
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.