Record Class TaskDescriptor
java.lang.Object
java.lang.Record
org.j7m.middleware.workload.api.TaskDescriptor
- Record Components:
taskName- application task namehandlerName- handler or method namepayload- payload object owned by the submitting applicationmetadata- workload metadataattributes- safe descriptor attributes
-
Constructor Summary
ConstructorsConstructorDescriptionTaskDescriptor(String taskName, String handlerName, Object payload, WorkloadMetadata metadata, Map<String, String> attributes) Creates immutable descriptor attributes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandlerNamerecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.payload()Returns the value of thepayloadrecord component.taskName()Returns the value of thetaskNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskDescriptor
-
-
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). -
taskName
-
handlerName
Returns the value of thehandlerNamerecord component.- Returns:
- the value of the
handlerNamerecord component
-
payload
-
metadata
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-