Package dev.tachyonmcp.core.protocol
Record Class ProtocolRequestMapper.TaskStatusRequest
java.lang.Object
java.lang.Record
dev.tachyonmcp.core.protocol.ProtocolRequestMapper.TaskStatusRequest
- Record Components:
taskId- the task's IDstate- the task's new statemessage- optional human-readable status message, ornull
- Enclosing interface:
ProtocolRequestMapper
public static record ProtocolRequestMapper.TaskStatusRequest(String taskId, TaskState state, @Nullable String message)
extends Record
A task status update.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskStatusRequest(String taskId, TaskState state, @Nullable String message) Creates an instance of aTaskStatusRequestrecord 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.@Nullable Stringmessage()Returns the value of themessagerecord component.state()Returns the value of thestaterecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-