Beispiel #1
0
 @Override
 public <E extends IResponse<F>, F> void submit(ICommand<E, F> cmd) throws IOException {
   if (isClosed.get()) {
     RuntimeException rte = new RuntimeException("Statement is closed");
     cmd.getResponse().setError(rte);
     throw rte;
   }
   // log.info("submit cmd " + cmd + " with argument " + cmd.getInput());
   OobPacket sendPacket = createSendPacket(cmd);
   long id = sendPacket.getRmppMad().getCommonMad().getTransactionId();
   cmd.setPacket(sendPacket);
   cmd.setStatement(this);
   conn.submitCmd(id, sendPacket, cmd);
 }