mirror of https://github.com/apache/activemq.git
added helper method
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383516 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6cb66e4865
commit
204e940809
|
@ -80,4 +80,10 @@ public abstract class TransportThreadSupport extends TransportSupport implements
|
|||
}
|
||||
|
||||
protected abstract void doStop(ServiceStopper stopper) throws Exception;
|
||||
|
||||
protected void checkStarted() {
|
||||
if (!isStarted()) {
|
||||
throw new IllegalStateException("The transport " + this + " of type: " + getClass().getName() + " has not been started yet!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue