Package com.brienwheeler.lib.svc

Examples of com.brienwheeler.lib.svc.ServiceState


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


 
  protected ServiceState waitForStateChange() throws InterruptedException
  {
    synchronized (state)
    {
      ServiceState startState = state.get();
     
      ServiceState newState = state.get();
      while (newState == startState)
      {
        state.wait();
        newState = state.get();
      }
View Full Code Here

TOP

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

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.