public class RateLimitMarketPlaceBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RateLimitConfiguration |
config |
private com.google.common.eventbus.EventBus |
eventbus |
private java.lang.String |
id |
private Limiter |
limiter |
private javax.inject.Provider<RateLimitRepository> |
repo |
private GUID |
shopId |
Constructor and Description |
---|
RateLimitMarketPlaceBuilder(javax.inject.Provider<RateLimitRepository> repo,
RateLimitConfiguration config,
Limiter limiter) |
Modifier and Type | Method and Description |
---|---|
(package private) RateLimitService |
build() |
private int |
getLimit() |
private long |
getResetWindowInMillisForShop() |
RateLimitMarketPlaceBuilder |
id(java.lang.String id) |
void |
setEventBus(com.google.common.eventbus.EventBus eventBus) |
RateLimitMarketPlaceBuilder |
shopId(GUID shopId) |
private final javax.inject.Provider<RateLimitRepository> repo
private final RateLimitConfiguration config
private final Limiter limiter
private java.lang.String id
private GUID shopId
private com.google.common.eventbus.EventBus eventbus
@Inject public RateLimitMarketPlaceBuilder(javax.inject.Provider<RateLimitRepository> repo, RateLimitConfiguration config, Limiter limiter)
@Inject public void setEventBus(com.google.common.eventbus.EventBus eventBus)
public RateLimitMarketPlaceBuilder shopId(GUID shopId)
public RateLimitMarketPlaceBuilder id(java.lang.String id)
RateLimitService build()
private int getLimit()
private long getResetWindowInMillisForShop()