public class BrokerProposalLeaderboard extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BrokerProposalLeaderboard.Result
The final resulting leaderboard for this broker.
|
Constructor and Description |
---|
BrokerProposalLeaderboard(int brokerId,
int maxNumProposals) |
Modifier and Type | Method and Description |
---|---|
BrokerProposalLeaderboard.Result |
finish()
Drains the leaderboard and returns the result.
|
void |
submitProposal(DetailedProposal.Result detailedProposalResult)
Conditionally adds the proposal to the leaderboard if the given proposal is more impactful than the least impactful, or if there is still space on the leaderboard.
|
public BrokerProposalLeaderboard(int brokerId, int maxNumProposals)
public BrokerProposalLeaderboard.Result finish()
public void submitProposal(DetailedProposal.Result detailedProposalResult)
detailedProposalResult
- the proposal to potentially add to the leaderboard.