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 IConfigurationAdapter
Returns theIConfigurationAdapter
implementationdefault void
load()
Loading RedisManager from config methodlogger()
Returns logger objectvoid
onMessageReceived
(String channel, MessageTransferObject messageTransferObject) Calls the corresponding events when message was receivedvoid
Runs 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 theIConfigurationAdapter
implementation- Returns:
- Implementation of
IConfigurationAdapter
-
load
default void load()Loading RedisManager from config method
-