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 Details

    • runAsync

      void runAsync(Runnable task)
      Runs asynchronous task
      Parameters:
      task - Task to be run async
    • onMessageReceived

      void onMessageReceived(String channel, MessageTransferObject messageTransferObject)
      Calls the corresponding events when message was received
      Parameters:
      channel - Channel which received the message
      messageTransferObject - MessageTransferObject which was received
    • logger

      Logger logger()
      Returns logger object
      Returns:
      Logger instance of the current implementation
    • getConfigAdapter

      default IConfigurationAdapter getConfigAdapter()
      Returns the IConfigurationAdapter implementation
      Returns:
      Implementation of IConfigurationAdapter
    • load

      default void load()
      Loading RedisManager from config method