| Package | Description |
|---|---|
| uk.co.visalia.brightpearl.apiclient | |
| uk.co.visalia.brightpearl.apiclient.ratelimit |
| Modifier and Type | Method and Description |
|---|---|
void |
BrightpearlApiClientFactory.setRateLimiter(RateLimiter rateLimiter)
Set the
RateLimiter implementation to be used for monitoring and limiting request throughput. |
BrightpearlApiClientFactory |
BrightpearlApiClientFactory.withRateLimiter(RateLimiter rateLimiter)
Set the
RateLimiter implementation to be used for monitoring and limiting request throughput. |
| Modifier and Type | Class and Description |
|---|---|
class |
ConstantWaitRateLimiter
A very basic implementation of
RateLimiter that will reduce the
throughput of requests by pausing for the minimum period required to ensure the cap is not exceeded. |
class |
NoOpRateLimiter
An implementation of
RateLimiter that allows requests to be sent to Brightpearl as fast as they are made by
the client. |
Copyright © 2014. All Rights Reserved.