Record Class WorkloadContext
java.lang.Object
java.lang.Record
org.j7m.middleware.workload.api.WorkloadContext
- Record Components:
securityContext- caller security contexttaskRef- task referencelease- current leasemetadata- safe execution metadata
-
Constructor Summary
ConstructorsConstructorDescriptionWorkloadContext(SecurityContext securityContext, TaskRef taskRef, TaskLease lease, Map<String, String> metadata) Creates immutable context metadata. -
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.lease()Returns the value of theleaserecord component.metadata()Returns the value of themetadatarecord component.Returns the value of thesecurityContextrecord component.taskRef()Returns the value of thetaskRefrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkloadContext
-
-
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). -
securityContext
Returns the value of thesecurityContextrecord component.- Returns:
- the value of the
securityContextrecord component
-
taskRef
-
lease
-
metadata
-