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