Class ChannelRegistry
java.lang.Object
net.swofty.redisapi.api.ChannelRegistry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull RedisChannelgetFromName(String channelName) Used to receive a channel that has already been registeredvoidregisterChannel(RedisChannel channel)
-
Field Details
-
registeredChannels
-
-
Constructor Details
-
ChannelRegistry
public ChannelRegistry()
-
-
Method Details
-
getFromName
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
-