Class RedisTimedRequest

java.lang.Object
net.bitbylogic.rps.timed.RedisTimedRequest

public class RedisTimedRequest extends Object
  • 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.