Record Class TestGraphCleanupService.CleanupSummary
java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.cleanup.TestGraphCleanupService.CleanupSummary
- Record Components:
deleted- graph IDs successfully deletedfailed- graph IDs that failed to delete, with reasonsleasesReleased- number of clusters whose Consul lease keys were released
- Enclosing class:
TestGraphCleanupService
public static record TestGraphCleanupService.CleanupSummary(List<String> deleted, List<TestGraphCleanupService.CleanupFailure> failed, int leasesReleased)
extends Record
Outcome of a batch cleanup run.
-
Constructor Summary
ConstructorsConstructorDescriptionCleanupSummary(List<String> deleted, List<TestGraphCleanupService.CleanupFailure> failed) Convenience constructor with zero leases released.CleanupSummary(List<String> deleted, List<TestGraphCleanupService.CleanupFailure> failed, int leasesReleased) Creates an instance of aCleanupSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondeleted()Returns the value of thedeletedrecord component.final booleanIndicates whether some other object is "equal to" this one.failed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theleasesReleasedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CleanupSummary
Convenience constructor with zero leases released.- Parameters:
deleted- graph IDs successfully deletedfailed- graph IDs that failed to delete, with reasons
-
CleanupSummary
public CleanupSummary(List<String> deleted, List<TestGraphCleanupService.CleanupFailure> failed, int leasesReleased) Creates an instance of aCleanupSummaryrecord class.- Parameters:
deleted- the value for thedeletedrecord componentfailed- the value for thefailedrecord componentleasesReleased- the value for theleasesReleasedrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
deleted
-
failed
-
leasesReleased
public int leasesReleased()Returns the value of theleasesReleasedrecord component.- Returns:
- the value of the
leasesReleasedrecord component
-