Record Class JobStreamEndpoint.ClientJobStream
java.lang.Object
java.lang.Record
io.camunda.zeebe.shared.management.JobStreamEndpoint.ClientJobStream
- Enclosing class:
- JobStreamEndpoint
public static record JobStreamEndpoint.ClientJobStream(String jobType, Object id, JobStreamEndpoint.Metadata metadata, Collection<Integer> connectedTo)
extends Record
View model of a client job stream for JSON serialization. The
connectedTo() collection
is the set of broker IDs this stream is registered on, from the gateway's point of view.-
Constructor Summary
ConstructorsConstructorDescriptionClientJobStream(String jobType, Object id, JobStreamEndpoint.Metadata metadata, Collection<Integer> connectedTo) Creates an instance of aClientJobStreamrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectedTorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.jobType()Returns the value of thejobTyperecord component.metadata()Returns the value of themetadatarecord 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). -
jobType
Returns the value of thejobTyperecord component.- Returns:
- the value of the
jobTyperecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
connectedTo
Returns the value of theconnectedTorecord component.- Returns:
- the value of the
connectedTorecord component
-