Skip to content

Commit

Permalink
Task 45 : Define RateLimiterService
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapter1990 committed Jul 2, 2024
1 parent 224ebc2 commit 7b7a278
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.springboot.ratelimiter.user.service;

/**
* Service interface named {@link RateLimiterService} for rate limiting operations.
*/
public interface RateLimiterService {

/**
* Checks if the current request is allowed based on rate limiting rules.
*
* @return true if the request is allowed, false otherwise
*/
boolean isAllowed();

}

0 comments on commit 7b7a278

Please sign in to comment.