Package cz.foresttech.forestredis.shared
Interface IForestRedisPlugin
- All Known Implementing Classes:
ForestRedisBungee,ForestRedisSpigot
public interface IForestRedisPlugin
Generic plugin interface. It is used to handle similar functions across Bungee and Spigot server engines.
-
Method Summary
Modifier and TypeMethodDescriptiondefault IConfigurationAdapterReturns theIConfigurationAdapterimplementationdefault voidload()Loading RedisManager from config methodlogger()Returns logger objectvoidonMessageReceived(String channel, MessageTransferObject messageTransferObject) Calls the corresponding events when message was receivedvoidRuns asynchronous task
-
Method Details
-
runAsync
Runs asynchronous task- Parameters:
task- Task to be run async
-
logger
Logger logger()Returns logger object- Returns:
- Logger instance of the current implementation
-
getConfigAdapter
Returns theIConfigurationAdapterimplementation- Returns:
- Implementation of
IConfigurationAdapter
-
load
default void load()Loading RedisManager from config method
-