| Package | Description |
|---|---|
| org.wikidata.query.rdf.blazegraph.throttling |
| Modifier and Type | Method and Description |
|---|---|
static Callable<ThrottlingState> |
ThrottlingFilter.createThrottlingState(int timeBucketCapacityInSeconds,
int timeBucketRefillAmountInSeconds,
int timeBucketRefillPeriodInMinutes,
int errorBucketCapacity,
int errorBucketRefillAmount,
int errorBucketRefillPeriodInMinutes)
Create Callable to initialize throttling state.
|
| Constructor and Description |
|---|
Throttler(Duration requestTimeThreshold,
Bucketing<B> bucketing,
Callable<ThrottlingState> createThrottlingState,
com.google.common.cache.Cache<B,ThrottlingState> stateStore,
String enableThrottlingIfHeader)
Constructor.
|
Throttler(Duration requestTimeThreshold,
Bucketing<B> bucketing,
Callable<ThrottlingState> createThrottlingState,
com.google.common.cache.Cache<B,ThrottlingState> stateStore,
String enableThrottlingIfHeader)
Constructor.
|
Copyright © 2017. All rights reserved.