(final State from)
| 492 | } |
| 493 | |
| 494 | @GuardedBy("monitor") |
| 495 | private void stopping(final State from) { |
| 496 | if (from == State.STARTING) { |
| 497 | STOPPING_FROM_STARTING_CALLBACK.enqueueOn(listeners); |
| 498 | } else if (from == State.RUNNING) { |
| 499 | STOPPING_FROM_RUNNING_CALLBACK.enqueueOn(listeners); |
| 500 | } else { |
| 501 | throw new AssertionError(); |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | @GuardedBy("monitor") |
| 506 | private void terminated(final State from) { |