()
| 201 | protected abstract void doStop(); |
| 202 | |
| 203 | @CanIgnoreReturnValue |
| 204 | @Override |
| 205 | public final Service startAsync() { |
| 206 | if (monitor.enterIf(isStartable)) { |
| 207 | try { |
| 208 | snapshot = new StateSnapshot(STARTING); |
| 209 | starting(); |
| 210 | doStart(); |
| 211 | } catch (Throwable startupFailure) { |
| 212 | notifyFailed(startupFailure); |
| 213 | } finally { |
| 214 | monitor.leave(); |
| 215 | executeListeners(); |
| 216 | } |
| 217 | } else { |
| 218 | throw new IllegalStateException("Service " + this + " has already been started"); |
| 219 | } |
| 220 | return this; |
| 221 | } |
| 222 | |
| 223 | @CanIgnoreReturnValue |
| 224 | @Override |
nothing calls this directly
no test coverage detected