Package net.bitbylogic.rps.listener
Class RedisMessageListener
java.lang.Object
net.bitbylogic.rps.listener.RedisMessageListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidonReceive(@NotNull ListenerComponent message) Handles the reception of aListenerComponentmessage dispatched within the Redis channel.protected voidEnables self-activation by setting theselfActivationflag totrue.
-
Constructor Details
-
RedisMessageListener
-
-
Method Details
-
onReceive
Handles the reception of aListenerComponentmessage dispatched within the Redis channel. Implementations of this method should define the logic to process the received message.- Parameters:
message- theListenerComponentobject containing the message data, channel information, and any associated metadata. It cannot benull.
-
setAllowSelfActivation
protected void setAllowSelfActivation()Enables self-activation by setting theselfActivationflag totrue. This method allows the listener to be activated by components sent from the same server.
-