Record Class DatabeanExportService.DatabeanExportResponse
java.lang.Object
java.lang.Record
io.datarouter.plugin.dataexport.service.exporting.DatabeanExportService.DatabeanExportResponse
- Enclosing class:
DatabeanExportService
-
Constructor Summary
ConstructorsConstructorDescriptionDatabeanExportResponse(String nodeName, int numParts, long numDatabeans) Creates an instance of aDatabeanExportResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodeName()Returns the value of thenodeNamerecord component.longReturns the value of thenumDatabeansrecord component.intnumParts()Returns the value of thenumPartsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatabeanExportResponse
Creates an instance of aDatabeanExportResponserecord class.- Parameters:
nodeName- the value for thenodeNamerecord componentnumParts- the value for thenumPartsrecord componentnumDatabeans- the value for thenumDatabeansrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
nodeName
Returns the value of thenodeNamerecord component.- Returns:
- the value of the
nodeNamerecord component
-
numParts
public int numParts()Returns the value of thenumPartsrecord component.- Returns:
- the value of the
numPartsrecord component
-
numDatabeans
public long numDatabeans()Returns the value of thenumDatabeansrecord component.- Returns:
- the value of the
numDatabeansrecord component
-