Class RedisMessageListener

java.lang.Object
net.bitbylogic.rps.listener.RedisMessageListener

public abstract class RedisMessageListener extends Object
  • Constructor Details

    • RedisMessageListener

      public RedisMessageListener(@NotNull @NotNull String channelName)
  • Method Details

    • onReceive

      public abstract void onReceive(@NotNull @NotNull ListenerComponent message)
      Handles the reception of a ListenerComponent message dispatched within the Redis channel. Implementations of this method should define the logic to process the received message.
      Parameters:
      message - the ListenerComponent object containing the message data, channel information, and any associated metadata. It cannot be null.
    • setAllowSelfActivation

      protected void setAllowSelfActivation()
      Enables self-activation by setting the selfActivation flag to true. This method allows the listener to be activated by components sent from the same server.