org.apache.activemq.util
public class ServiceStopper extends java.lang.Object
Constructor and Description |
---|
ServiceStopper() |
Modifier and Type | Method and Description |
---|---|
protected void |
logError(java.lang.Object service,
java.lang.Throwable e) |
void |
onException(java.lang.Object owner,
java.lang.Throwable e) |
void |
run(Callback stopClosure)
Performs the given code to stop some service handling the exceptions
which may be thrown properly
|
void |
stop(Service service)
Stops the given service, catching any exceptions that are thrown.
|
void |
stopServices(java.util.List services)
Stops a list of services
|
void |
throwFirstException()
Throws the first exception that was thrown if there was one.
|
public ServiceStopper()
public void stop(Service service)
public void run(Callback stopClosure)
public void stopServices(java.util.List services)
public void onException(java.lang.Object owner, java.lang.Throwable e)
public void throwFirstException() throws java.lang.Exception
java.lang.Exception
protected void logError(java.lang.Object service, java.lang.Throwable e)
Copyright © 2005-2014. All Rights Reserved.