Class EventRegistry

java.lang.Object
net.swofty.redisapi.events.EventRegistry

public class EventRegistry extends Object
  • Field Details

    • pubSub

      public static volatile redis.clients.jedis.JedisPubSub pubSub
  • Constructor Details

    • EventRegistry

      public EventRegistry()
  • Method Details

    • dispatch

      public static void dispatch(String channel, String message)
      Entry point for the subscriber thread. Does the filter check and then hands the message to a worker; nothing else may happen here, because every channel in the process shares this one thread and anything that blocks it stalls all Redis traffic.
    • handleAll

      public static void handleAll(String channel, String message)