package com.dcsquare.hivemq.spi.services;

import com.google.common.util.concurrent.ListeningScheduledExecutorService;

/**
 * A shared thread pool executor which is a {@link ListeningScheduledExecutorService}.
 * It is recommended to use this instead of creating your own thread(-pool) in your plugin.
 *
 * @author Christoph Schäbel
 */
public interface PluginExecutorService extends ListeningScheduledExecutorService {

}

@@ -113,16 +113,40 @@
 rvice;%0A%0A
+import java.util.List;%0A%0A
 /**%0A * A
@@ -440,10 +440,591 @@
 vice %7B%0A%0A
+    /**%0A     * The Plugin Executor Service is automatically shut down when HiveMQ is shut down.%0A     *%0A     * Manual calls to this method from the plugin system are not supported.%0A     *%0A     * @throws %7B@link UnsupportedOperationException%7D%0A     */%0A    @Override%0A    void shutdown();%0A%0A    /**%0A     * The Plugin Executor Service is automatically shut down when HiveMQ is shut down.%0A     *%0A     * Manual calls to this method from the plugin system are not supported.%0A     *%0A     * @throws %7B@link UnsupportedOperationException%7D%0A     */%0A    @Override%0A    List%3CRunnable%3E shutdownNow();%0A%0A
 %7D%0A

add doc for shutdown methods in PluginExecutorService