Index
All Classes and Interfaces|All Packages
A
- addData(String, Object) - Method in class net.bitbylogic.rps.listener.ListenerComponent
-
Adds a key-value pair to the internal data map.
- addDataRaw(String, String) - Method in class net.bitbylogic.rps.listener.ListenerComponent
-
Adds a raw key-value pair to the internal data storage of the
ListenerComponent. - addTimedRequest(TimeUnit, int, RedisTimedRequest) - Method in class net.bitbylogic.rps.listener.ListenerComponent
-
Adds a timed request to the listener component.
- addTimedResponse(RedisTimedResponse) - Method in class net.bitbylogic.rps.listener.ListenerComponent
-
Adds a timed response to the list of timed responses managed by the
ListenerComponent.
G
- getData(String, Class<T>) - Method in class net.bitbylogic.rps.listener.ListenerComponent
-
Retrieves data stored in the component using the specified key and deserializes it into an object of the specified type.
- getDataOrElse(String, Class<T>, T) - Method in class net.bitbylogic.rps.listener.ListenerComponent
-
Retrieves data associated with a specific key and attempts to deserialize it into the specified type.
- getGson() - Method in class net.bitbylogic.rps.RedisManager
-
Retrieves the instance of
Gsonused by theRedisManager. - getRedisClient() - Method in class net.bitbylogic.rps.client.RedisClient
-
Retrieves the Redisson client instance used to interact with Redis.
- getRequestByID(String) - Method in class net.bitbylogic.rps.listener.ListenerComponent
-
Retrieves a
RedisTimedRequestfrom the internal collection of timed requests based on the provided unique identifier.
L
- ListenerComponent - Class in net.bitbylogic.rps.listener
- ListenerComponent() - Constructor for class net.bitbylogic.rps.listener.ListenerComponent
- ListenerComponent(String) - Constructor for class net.bitbylogic.rps.listener.ListenerComponent
-
Constructs a new
ListenerComponentinstance with the specified channel name. - ListenerComponent(String, String) - Constructor for class net.bitbylogic.rps.listener.ListenerComponent
-
Constructs a new
ListenerComponentinstance with the specified target server ID and channel. - ListenerComponent(String, String, HashMap<String, String>) - Constructor for class net.bitbylogic.rps.listener.ListenerComponent
-
Constructs a new
ListenerComponentinstance with the specified target server ID, channel, and data.
N
- net.bitbylogic.rps - package net.bitbylogic.rps
- net.bitbylogic.rps.client - package net.bitbylogic.rps.client
- net.bitbylogic.rps.listener - package net.bitbylogic.rps.listener
- net.bitbylogic.rps.timed - package net.bitbylogic.rps.timed
O
- onReceive(ListenerComponent) - Method in class net.bitbylogic.rps.listener.RedisMessageListener
-
Handles the reception of a
ListenerComponentmessage dispatched within the Redis channel.
R
- RedisClient - Class in net.bitbylogic.rps.client
- RedisClient(RedisManager, String) - Constructor for class net.bitbylogic.rps.client.RedisClient
-
Constructs a new RedisClient instance with the specified RedisManager and client ID.
- RedisManager - Class in net.bitbylogic.rps
- RedisManager(String, int, String, String) - Constructor for class net.bitbylogic.rps.RedisManager
-
Constructs a new RedisManager instance with the specified host, port, password, and server ID.
- RedisManager(Config, String) - Constructor for class net.bitbylogic.rps.RedisManager
-
Creates a new instance of the RedisManager class, initializing the RedissonClient instance with the given configuration.
- RedisMessageListener - Class in net.bitbylogic.rps.listener
- RedisMessageListener(String) - Constructor for class net.bitbylogic.rps.listener.RedisMessageListener
- RedisTimedRequest - Class in net.bitbylogic.rps.timed
- RedisTimedRequest(String, Consumer<ListenerComponent>, Consumer<Void>) - Constructor for class net.bitbylogic.rps.timed.RedisTimedRequest
-
Constructs a new RedisTimedRequest with a unique identifier, request ID, and callbacks for success and timeout events.
- RedisTimedRequest(UUID, String, String) - Constructor for class net.bitbylogic.rps.timed.RedisTimedRequest
-
Constructs a new instance of the RedisTimedRequest class.
- RedisTimedResponse - Class in net.bitbylogic.rps.timed
- RedisTimedResponse(RedisTimedRequest) - Constructor for class net.bitbylogic.rps.timed.RedisTimedResponse
-
Constructs a new instance of the RedisTimedResponse class by extracting required fields from the provided RedisTimedRequest object.
- registerClient(String) - Method in class net.bitbylogic.rps.RedisManager
-
Registers a new RedisClient with the specified ID.
- registerListener(RedisMessageListener) - Method in class net.bitbylogic.rps.client.RedisClient
-
Registers a Redis message listener with the client.
S
- selfActivation(boolean) - Method in class net.bitbylogic.rps.listener.ListenerComponent
-
Configures whether self-activation is allowed for this
ListenerComponent. - sendListenerMessage(ListenerComponent) - Method in class net.bitbylogic.rps.client.RedisClient
-
Sends a listener message to a Redis topic and handles timed requests associated with the message.
- sendTimedResponse(ListenerComponent) - Method in class net.bitbylogic.rps.client.RedisClient
-
Sends a timed response message using the specified
ListenerComponent. - setAllowSelfActivation() - Method in class net.bitbylogic.rps.listener.RedisMessageListener
-
Enables self-activation by setting the
selfActivationflag totrue.
All Classes and Interfaces|All Packages