(Tuple input)
| 174 | } |
| 175 | |
| 176 | @Override |
| 177 | public void execute(Tuple input) { |
| 178 | if (exception != null) { |
| 179 | throw new RuntimeException(exception); |
| 180 | } |
| 181 | |
| 182 | //just need an id |
| 183 | String genId = Long.toString(rand.nextLong()); |
| 184 | inputs.put(genId, input); |
| 185 | try { |
| 186 | BoltMsg boltMsg = createBoltMessage(input, genId); |
| 187 | |
| 188 | pendingWrites.putBoltMsg(boltMsg); |
| 189 | } catch (InterruptedException e) { |
| 190 | // It's likely that Bolt is shutting down so no need to throw RuntimeException |
| 191 | // just ignore |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | private BoltMsg createBoltMessage(Tuple input, String genId) { |
| 196 | BoltMsg boltMsg = new BoltMsg(); |
nothing calls this directly
no test coverage detected