Package cartago.events

Examples of cartago.events.CartagoActionEvent


    list.add(ev);
    notifyAll();
  }

  public synchronized CartagoActionEvent waitFor(long id) throws InterruptedException {
    CartagoActionEvent ev = remove(id);
    while (ev == null){
      wait();
      ev = remove(id);
    }
    return ev;
View Full Code Here


  }
 
  private CartagoActionEvent remove(long id){
    Iterator<CartagoActionEvent> it = list.iterator();
    while (it.hasNext()){
      CartagoActionEvent ev = it.next();
      if (ev.getActionId() == id){
        it.remove();
        return ev;
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of cartago.events.CartagoActionEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.