public class ProposalLeaderboard extends Object
DetailedProposal.Result
separated by broker and acceptance.Modifier and Type | Class and Description |
---|---|
static class |
ProposalLeaderboard.Result
The final resulting leaderboard for each broker.
|
Constructor and Description |
---|
ProposalLeaderboard(ProposalObservabilityTrackingOptions trackingOptions) |
Modifier and Type | Method and Description |
---|---|
ProposalLeaderboard.Result |
finish()
Drains the underlying leaderboards
|
void |
submitProposal(DetailedProposal.Result detailedProposalResult)
Conditionally adds the given
DetailedProposal.Result to its corresponding broker leaderboard. |
public ProposalLeaderboard(ProposalObservabilityTrackingOptions trackingOptions)
public ProposalLeaderboard.Result finish()
public void submitProposal(DetailedProposal.Result detailedProposalResult)
DetailedProposal.Result
to its corresponding broker leaderboard.
A proposal is added to the leaderboard if it is larger than the smallest item in the leaderboard, or if the leaderboard still has empty space.detailedProposalResult
- the proposal to add.