Constructor and Description |
---|
StatusService(QueryService queryService,
HandlerService handlerService,
long period,
long retries,
Boolean enabled,
int maxConcurrentQueries)
Creates an instance with a tick period and number of retries.
|
Modifier and Type | Method and Description |
---|---|
boolean |
queryLimitReached()
This checks if the configured max concurrent queries limit has been exceeded.
|
void |
run() |
@Autowired public StatusService(QueryService queryService, HandlerService handlerService, @Value(value="${bullet.status.tick-ms}") long period, @Value(value="${bullet.status.retries}") long retries, @Value(value="${bullet.status.enabled}") Boolean enabled, @Value(value="${bullet.query.synchronous.max.concurrency}") int maxConcurrentQueries)
queryService
- The QueryService
to use.handlerService
- The HandlerService
to use.period
- Rate at which to ping backend in ms.retries
- Number of times ping can fail before backend status is considered not ok.enabled
- Whether this backend status service is enabled or not.maxConcurrentQueries
- Number of maximum simultaneous synchronous queries that can be run.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.