void destroyConnection() { Connection con = this.connection; if (con != null) { if (!con.isDestroyed()) { con.destroy(); this.eventProcessor.getGateway().getProxy().returnConnection(con); } // Reset the connection so the next time through a new one will be // obtained this.connection = null; } }
ServerProxy sp = new ServerProxy(this.eventProcessor.getGateway().getProxy()); sp.dispatchBatch(connection, events, batchId, this.eventProcessor.getGateway().getEarlyAck());
if (this.eventProcessor.getGateway().getProxy().isDestroyed()) {