Record Class PartitionStatus
java.lang.Object
java.lang.Record
io.camunda.zeebe.broker.system.management.PartitionStatus
public record PartitionStatus(RaftServer.Role role, Long processedPosition, String snapshotId, Long processedPositionInSnapshot, StreamProcessor.Phase streamProcessorPhase, ExporterPhase exporterPhase, Long exportedPosition)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionStatus(RaftServer.Role role, Long processedPosition, String snapshotId, Long processedPositionInSnapshot, StreamProcessor.Phase streamProcessorPhase, ExporterPhase exporterPhase, Long exportedPosition) Creates an instance of aPartitionStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexportedPositionrecord component.Returns the value of theexporterPhaserecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprocessedPositionrecord component.Returns the value of theprocessedPositionInSnapshotrecord component.role()Returns the value of therolerecord component.Returns the value of thesnapshotIdrecord component.Returns the value of thestreamProcessorPhaserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartitionStatus
public PartitionStatus(RaftServer.Role role, Long processedPosition, String snapshotId, Long processedPositionInSnapshot, StreamProcessor.Phase streamProcessorPhase, ExporterPhase exporterPhase, Long exportedPosition) Creates an instance of aPartitionStatusrecord class.- Parameters:
role- the value for therolerecord componentprocessedPosition- the value for theprocessedPositionrecord componentsnapshotId- the value for thesnapshotIdrecord componentprocessedPositionInSnapshot- the value for theprocessedPositionInSnapshotrecord componentstreamProcessorPhase- the value for thestreamProcessorPhaserecord componentexporterPhase- the value for theexporterPhaserecord componentexportedPosition- the value for theexportedPositionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
processedPosition
Returns the value of theprocessedPositionrecord component.- Returns:
- the value of the
processedPositionrecord component
-
snapshotId
Returns the value of thesnapshotIdrecord component.- Returns:
- the value of the
snapshotIdrecord component
-
processedPositionInSnapshot
Returns the value of theprocessedPositionInSnapshotrecord component.- Returns:
- the value of the
processedPositionInSnapshotrecord component
-
streamProcessorPhase
Returns the value of thestreamProcessorPhaserecord component.- Returns:
- the value of the
streamProcessorPhaserecord component
-
exporterPhase
Returns the value of theexporterPhaserecord component.- Returns:
- the value of the
exporterPhaserecord component
-
exportedPosition
Returns the value of theexportedPositionrecord component.- Returns:
- the value of the
exportedPositionrecord component
-