private void initIfNeeded() { if (!enabled || schedulerThread != null) { return; } schedulerThread = new SchedulerThread(cacheName); schedulerThread.start(); }
public static ActiveObject createActiveObject() { Servant servant = new Servant(); ActivationQueue queue = new ActivationQueue(); SchedulerThread scheduler = new SchedulerThread(queue); Proxy proxy = new Proxy(scheduler, servant); scheduler.start(); return proxy; }
public static ActiveObject createActiveObject() { Servant servant = new Servant(); ActivationQueue queue = new ActivationQueue(); SchedulerThread scheduler = new SchedulerThread(queue); // use for execute Request Proxy proxy = new Proxy(scheduler, servant); // wrapper future result and request queue scheduler.start(); // return proxy; }
public void setSt(SchedulerThread st) { this.st = st; st.setPause(true); st.start(); }