public class TimebasedProposalGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
ADDRESS_WIDTH |
(package private) static int |
TIME_WIDTH |
(package private) static int |
UID_WIDTH |
(package private) static int |
uniqueIdGenerator |
Constructor and Description |
---|
TimebasedProposalGenerator()
Constructor defaulting the unique id so it's merely unique within the
process.
|
TimebasedProposalGenerator(int locallyUniqueId)
Creates an instance with an application-specified locally (machine wide)
unique id, e.g.
|
Modifier and Type | Method and Description |
---|---|
static Proposer.ProposalParser |
getParser()
Returns the parser used to convert wire representations into Proposal
instances.
|
Proposer.Proposal |
nextProposal()
Returns the next Proposal greater than all previous proposals returned
on this machine.
|
static int uniqueIdGenerator
static final int TIME_WIDTH
static final int ADDRESS_WIDTH
static final int UID_WIDTH
TimebasedProposalGenerator(int locallyUniqueId)
locallyUniqueId
- the machine wide unique idpublic TimebasedProposalGenerator()
public Proposer.Proposal nextProposal()
public static Proposer.ProposalParser getParser()
Copyright (c) 2004-2012 Oracle. All rights reserved.