code: public int pending_asynch_call(final DeviceProxy dev, final int reply_model) {
          int cnt = 0;
          final Enumeration _enum = async_request_table.keys();
          while (_enum.hasMoreElements()) {
              int n = (Integer)_enum.nextElement();
              final AsyncCallObject aco = async_request_table.get(n);
              if (aco.dev == dev
                  && (reply_model == ApiDefs.ALL_ASYNCH || aco.reply_model == reply_model)) {
              cnt++;
              }
          }
          return cnt;
      }
docs: ==========================================================================