Class ChannelRegistry

java.lang.Object
net.swofty.redisapi.api.ChannelRegistry

public class ChannelRegistry extends Object
  • Field Details

  • Constructor Details

    • ChannelRegistry

      public ChannelRegistry()
  • Method Details

    • getFromName

      @NonNull public @NonNull RedisChannel getFromName(String channelName)
      Used to receive a channel that has already been registered
      Parameters:
      channelName - the name of the channel that is being filtered
      Returns:
      channel object
      Throws:
      ChannelNotRegisteredException - returns channelNotRegistered when you call this method upon a channel that does not exist
    • registerChannel

      public void registerChannel(RedisChannel channel)