Record Class UploadStatusService.StatusView
java.lang.Object
java.lang.Record
ai.pipestream.connector.intake.status.UploadStatusService.StatusView
- Enclosing class:
UploadStatusService
public static record UploadStatusService.StatusView(String docId, String state, String code, String errorId, String message, OffsetDateTime updatedAt)
extends Record
Client-safe status projection shared by the HTTP and gRPC status surfaces.
updatedAt is the time of the last state change — for an ACCEPTED row
that is the acceptance time (a retry that upgrades ERROR→ACCEPTED stamps it
fresh), which is what gRPC reports as accepted_at.-
Constructor Summary
ConstructorsConstructorDescriptionStatusView(String docId, String state, String code, String errorId, String message, OffsetDateTime updatedAt) Creates an instance of aStatusViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.docId()Returns the value of thedocIdrecord component.final booleanIndicates whether some other object is "equal to" this one.errorId()Returns the value of theerrorIdrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
StatusView
public StatusView(String docId, String state, String code, String errorId, String message, OffsetDateTime updatedAt) Creates an instance of aStatusViewrecord class.- Parameters:
docId- the value for thedocIdrecord componentstate- the value for thestaterecord componentcode- the value for thecoderecord componenterrorId- the value for theerrorIdrecord componentmessage- the value for themessagerecord componentupdatedAt- the value for theupdatedAtrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
docId
Returns the value of thedocIdrecord component.- Returns:
- the value of the
docIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
errorId
Returns the value of theerrorIdrecord component.- Returns:
- the value of the
errorIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-