private void initIfNeeded() {
   if (!enabled || schedulerThread != null) {
     return;
   }
   schedulerThread = new SchedulerThread(cacheName);
   schedulerThread.start();
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 4
0
 public void setSt(SchedulerThread st) {
   this.st = st;
   st.setPause(true);
   st.start();
 }