code: public static void remove(Registry registry, Id id) {
      Object obj = registry.state().get(id);
      if (obj instanceof AbstractMeterState) {
        registry.state().remove(id, obj);
      }
    }
docs: Explicitly disable polling for the meter registered with {@code id}. This is optional
  and is mostly used if it is desirable for the meter to go away immediately. The polling
  will stop automatically when the referred object is garbage collected. See
  {@link Builder#monitorValue(Object, ToDoubleFunction)} for more information.