code: private int get_polling_period(String name, int src) throws DevFailed {
          //	Get the polling property
          String propname = (src==TangoConst.ATTRIBUTE) ? "polled_attr" : "polled_cmd";
          DbDatum datum = get_property(propname);
          if (datum.is_empty())
              Except.throw_exception("NOT_POLLED",
                      ((src==TangoConst.ATTRIBUTE) ? "Attribute " : "Command ") +
                              name + " not polled",
                      "DbDevice.get_polling_period()");
  
  
          String[] str = datum.extractStringArray();
          String _name = name.toLowerCase();
          for (int i = 0 ; i<str.length ; i += 2) {
              //	Check for name
              if (str[i].toLowerCase().equals(_name)) {
                  //	not last index.
                  if (i<str.length - 1) {
                      try {
                          return Integer.parseInt(str[i + 1]);
                      } catch (NumberFormatException e) {
                          Except.throw_exception("BAD_PARAM",
                                  "Period value is not coherent",
                                  "DbDevice.get_polling_period()");
                      }
                  } else
                      Except.throw_exception("BAD_PARAM",
                              "Period value is not coherent",
                              "DbDevice.get_polling_period()");
              }
          }
          Except.throw_exception("NOT_POLLED",
                  ((src==TangoConst.ATTRIBUTE) ? "Attribute " : "Command ") +
                          name + " not polled",
                  "DbDevice.get_polling_period()");
  
          return -1;
      }
docs: ==========================================================================