Record Class BatchResult<T>
java.lang.Object
java.lang.Record
org.tavall.couriers.api.concurrent.BatchResult<T>
-
Constructor Summary
ConstructorsConstructorDescriptionBatchResult(List<OutcomePREVIEW<T>> outcomes, boolean cancelled, boolean timedOut) Creates an instance of aBatchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelledrecord component.final booleanIndicates whether some other object is "equal to" this one.failures()booleanfinal inthashCode()Returns a hash code value for this object.outcomes()Returns the value of theoutcomesrecord component.booleantimedOut()Returns the value of thetimedOutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BatchResult
Creates an instance of aBatchResultrecord class.- Parameters:
outcomes- the value for theoutcomesrecord componentcancelled- the value for thecancelledrecord componenttimedOut- the value for thetimedOutrecord component
-
-
Method Details
-
successes
-
failures
-
hasFailures
public boolean hasFailures() -
firstFailureOrNull
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
outcomes
-
cancelled
public boolean cancelled()Returns the value of thecancelledrecord component.- Returns:
- the value of the
cancelledrecord component
-
timedOut
public boolean timedOut()Returns the value of thetimedOutrecord component.- Returns:
- the value of the
timedOutrecord component
-