Package net.bitbylogic.rps.timed
Class RedisTimedRequest
java.lang.Object
net.bitbylogic.rps.timed.RedisTimedRequest
-
Constructor Summary
ConstructorsConstructorDescriptionRedisTimedRequest(@NotNull String id, @NotNull Consumer<ListenerComponent> successCallback, @NotNull Consumer<Void> timeoutCallback) Constructs a new RedisTimedRequest with a unique identifier, request ID, and callbacks for success and timeout events.RedisTimedRequest(@NotNull UUID uniqueId, @NotNull String id, @NotNull String channel) Constructs a new instance of the RedisTimedRequest class. -
Method Summary
-
Constructor Details
-
RedisTimedRequest
public RedisTimedRequest(@NotNull @NotNull String id, @NotNull @NotNull Consumer<ListenerComponent> successCallback, @NotNull @NotNull Consumer<Void> timeoutCallback) Constructs a new RedisTimedRequest with a unique identifier, request ID, and callbacks for success and timeout events.- Parameters:
id- the unique identifier of the request. Must not be null.successCallback- the callback executed on a successful request. Must not be null.timeoutCallback- the callback executed on a timeout event. Must not be null.
-
RedisTimedRequest
public RedisTimedRequest(@NotNull @NotNull UUID uniqueId, @NotNull @NotNull String id, @NotNull @NotNull String channel) Constructs a new instance of the RedisTimedRequest class.- Parameters:
uniqueId- The unique identifier associated with this request.id- The request identifier.channel- The channel associated with the request.
-