/** * Generates the request ID. * * @return the request ID. * * @throws ModuleException if there were errors generating the request ID. */ private static RequestID generateRequestID() throws ModuleException { try { return new RequestID(sIDFactory.getNext()); } catch (NoMoreIDsException e) { throw new ModuleException(e, Messages.UNABLE_GENERATE_REQUEST_ID); } }
@Override public void cancel(DataFlowID inFlowID, RequestID inRequestID) { ReportListener listener = mRequestTable.remove(inRequestID); try { getClient().removeReportListener(listener); } catch (ClientInitException e) { Messages.LOG_CLIENT_NOT_INIT_CANCEL_REQUEST.error(this, e, inRequestID.toString()); } }