Package java.util

Examples of java.util.EventObject.wait()


    final EventObject event = new KillEvent();
    synchronized (event) {
      dispatchEvent(event);
      if (wait) {
        try {
          event.wait();
        } catch (final InterruptedException e) {
          log.info("wait for kill event interrupted!");
        }
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.