| Package | Description |
|---|---|
| com.github.rollingmetrics.ranking |
| Modifier and Type | Method and Description |
|---|---|
static RankingBuilder |
Ranking.builder(int size)
Creates new instance of
RankingBuilder |
RankingBuilder |
RankingBuilder.neverResetPositions()
Top configured with this strategy will store all values since the ranking was created.
|
static RankingBuilder |
RankingBuilder.newBuilder(int size)
Creates new builder instance.
|
RankingBuilder |
RankingBuilder.resetAllPositionsOnSnapshot()
Ranking configured with this strategy will be cleared each time when
Ranking.getPositionsInDescendingOrder() invoked. |
RankingBuilder |
RankingBuilder.resetAllPositionsPeriodically(Duration intervalBetweenResetting)
Ranking configured with this strategy will be cleared at all after each
intervalBetweenResetting elapsed. |
RankingBuilder |
RankingBuilder.resetPositionsPeriodicallyByChunks(Duration rollingTimeWindow,
int numberChunks)
Ranking configured with this strategy will be divided to numberChunks parts,
and one chunk will be cleared after each rollingTimeWindow / numberChunks elapsed.
|
RankingBuilder |
RankingBuilder.withBackgroundExecutor(Executor backgroundExecutor)
Configures the executor which will be used if any of
resetAllPositionsPeriodically(Duration) (Duration)} or resetPositionsPeriodicallyByChunks(Duration, int) (Duration, int)} (Duration)}. |
RankingBuilder |
RankingBuilder.withLatencyThreshold(Duration latencyThreshold)
Configures the latency threshold.
|
RankingBuilder |
RankingBuilder.withMaxLengthOfQueryDescription(int maxLengthOfQueryDescription)
Specifies the max length of description position int the ranking.
|
RankingBuilder |
RankingBuilder.withPositionCount(int size)
Configures the maximum count of positions for ranking which will be constructed by this builder.
|
RankingBuilder |
RankingBuilder.withSnapshotCachingDuration(Duration snapshotCachingDuration)
Configures the duration for caching the results of invocation of
Ranking.getPositionsInDescendingOrder(). |
RankingBuilder |
RankingBuilder.withTicker(Ticker ticker)
Replaces default ticker.
|
Copyright © 2020. All rights reserved.