Merge branch 'dev/3.0.0' into dev/5.0.0

This commit is contained in:
Andrew Steinborn
2023-05-14 02:53:47 -04:00
6 changed files with 135 additions and 44 deletions

View File

@@ -8,6 +8,7 @@
package com.velocitypowered.api.plugin;
import java.util.Optional;
import java.util.concurrent.ExecutorService;
/**
* A wrapper around a plugin loaded by the proxy.
@@ -29,4 +30,12 @@ public interface PluginContainer {
default Optional<?> getInstance() {
return Optional.empty();
}
/**
* Returns an executor service for this plugin. The executor will use a cached
* thread pool.
*
* @return an {@link ExecutorService} associated with this plugin
*/
ExecutorService getExecutorService();
}