@Test public void close_always_shutdownExecutorService() { sut.close(); verify(executor).shutdown(); }
@Override public void close() { scheduledService.shutdown(); }
InMemoryTimeoutManager implements TimeoutManager, AutoCloseable { @Override public void close() { scheduledService.shutdown(); } }
InMemoryTimeoutManager implements TimeoutManager, AutoCloseable { @Override public void close() { scheduledService.shutdown(); } InMemoryTimeoutManager();  InMemoryTimeoutManager(final int timerThreadPoolSize);  InMemoryTimeoutManager(final ScheduledExecutorService scheduledService, final Clock clock); }
InMemoryTimeoutManager implements TimeoutManager, AutoCloseable { @Override public void close() { scheduledService.shutdown(); } InMemoryTimeoutManager();  InMemoryTimeoutManager(final int timerThreadPoolSize);  InMemoryTimeoutManager(final ScheduledExecutorService scheduledService, final Clock clock); @Override void addExpiredCallback(final TimeoutExpired callback); @Override TimeoutId requestTimeout(final ExecutionContext context, final String sagaId, final long delay, final TimeUnit timeUnit, @Nullable final String name,
                               @Nullable final Object data); @Override void cancelTimeouts(final String sagaId); @Override void cancelTimeout(final TimeoutId id); @Override void close(); }
InMemoryTimeoutManager implements TimeoutManager, AutoCloseable { @Override public void close() { scheduledService.shutdown(); } InMemoryTimeoutManager();  InMemoryTimeoutManager(final int timerThreadPoolSize);  InMemoryTimeoutManager(final ScheduledExecutorService scheduledService, final Clock clock); @Override void addExpiredCallback(final TimeoutExpired callback); @Override TimeoutId requestTimeout(final ExecutionContext context, final String sagaId, final long delay, final TimeUnit timeUnit, @Nullable final String name,
                               @Nullable final Object data); @Override void cancelTimeouts(final String sagaId); @Override void cancelTimeout(final TimeoutId id); @Override void close();  }