コード例 #1
0
  public void execute(Tuple input) {
    if (_exception != null) {
      throw new RuntimeException(_exception);
    }

    // just need an id
    String genId = Long.toString(_rand.nextLong());
    _inputs.put(genId, input);
    _process.writeBoltMsg(createBoltMessage(input, genId));
  }