public class RateLimitServiceBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RateLimitConfiguration |
config |
private javax.inject.Provider<RateLimitRepository> |
repo |
private javax.ws.rs.container.ContainerRequestContext |
requestContext |
private OAuthTokenInfoFinder |
tokenInfoFinder |
Constructor and Description |
---|
RateLimitServiceBuilder(javax.inject.Provider<RateLimitRepository> repo,
RateLimitConfiguration config,
OAuthTokenInfoFinder tokenInfoFinder) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<RateLimitService> |
build() |
RateLimitServiceBuilder |
requestContext(javax.ws.rs.container.ContainerRequestContext requestContext) |
private final javax.inject.Provider<RateLimitRepository> repo
private final RateLimitConfiguration config
private final OAuthTokenInfoFinder tokenInfoFinder
private javax.ws.rs.container.ContainerRequestContext requestContext
@Inject public RateLimitServiceBuilder(javax.inject.Provider<RateLimitRepository> repo, RateLimitConfiguration config, OAuthTokenInfoFinder tokenInfoFinder)
public RateLimitServiceBuilder requestContext(javax.ws.rs.container.ContainerRequestContext requestContext)
public java.util.Optional<RateLimitService> build()