code: public int subscribe_event(int event, int max_size, boolean stateless) throws DevFailed {
          if (!useEvents())
              Except.throw_exception("NO_EVENT", "Event system not available");
          return deviceProxyDAO.subscribe_event(this, event, max_size, stateless);
      }
docs: ==========================================================================