protected void schedule(long mono_now) { if (mono_now < 100000) { Debug.out("eh?"); } if (last_schedule > 0) { if (mono_now - last_schedule > 1000) { if (mono_now - last_lag_log > 1000) { last_lag_log = mono_now; System.out.println( "Scheduling lagging: " + (mono_now - last_schedule) + " - instances=" + instance_map.size()); } } } last_schedule = mono_now; try { instance.schedule(); } catch (Throwable e) { Debug.printStackTrace(e); } }
protected void schedule() { try { instance.schedule(); } catch (Throwable e) { Debug.printStackTrace(e); } }
protected String getName() { return (instance.getName()); }
public int compareTo(Object o) { return instance.getSchedulePriority() - ((instanceWrapper) o).instance.getSchedulePriority(); }