Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache » activemq » util » [javadoc | source]
org.apache.activemq.util
public class: ServiceStopper [javadoc | source]
java.lang.Object
   org.apache.activemq.util.ServiceStopper
A helper class used to stop a bunch of services, catching and logging any exceptions and then throwing the first exception when everything is stoped.
Method from org.apache.activemq.util.ServiceStopper Summary:
logError,   onException,   run,   stop,   stopServices,   throwFirstException
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.util.ServiceStopper Detail:
 protected  void logError(Object service,
    Throwable e) 
 public  void onException(Object owner,
    Throwable e) 
 public  void run(Callback stopClosure) 
    Performs the given code to stop some service handling the exceptions which may be thrown properly
 public  void stop(Service service) 
    Stops the given service, catching any exceptions that are thrown.
 public  void stopServices(List services) 
    Stops a list of services
 public  void throwFirstException() throws Exception 
    Throws the first exception that was thrown if there was one.