Package com.brienwheeler.lib.svc

Examples of com.brienwheeler.lib.svc.ServiceStateException


 
  protected void ensureState(ServiceState expected, String message)
  {
    ServiceState current = state.get();
    if (current != expected)
      throw new ServiceStateException(message + " [" + current.toString() + "]");
  }
View Full Code Here


    try {
      return work.doServiceWork();
    }
    catch (InterruptedException e) {
      Thread.currentThread().interrupt();
      throw new ServiceStateException("service operation interrupted", e);
    }
    finally {
      synchronized (state) {
        serviceThreads.remove(Thread.currentThread());
        state.notifyAll();
View Full Code Here

TOP

Related Classes of com.brienwheeler.lib.svc.ServiceStateException

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.