mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
Merge branch 'dev/3.0.0' into dev/5.0.0
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user