Record Class ProposalStore.Consumption
java.lang.Object
java.lang.Record
com.eqixiac.equinix.mcp.server.broker.ProposalStore.Consumption
- Record Components:
outcome- how the attempt resolvedchange- the consumed proposal - non-null only whenoutcomeisProposalStore.Outcome.CONSUMED
- Enclosing class:
ProposalStore
public static record ProposalStore.Consumption(ProposalStore.Outcome outcome, PendingChange change)
extends Record
The result of one consume attempt.
-
Constructor Summary
ConstructorsConstructorDescriptionConsumption(ProposalStore.Outcome outcome, PendingChange change) Creates an instance of aConsumptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchange()Returns the value of thechangerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
outcome
-
change
-