Record Class JobActivationResponse
java.lang.Object
java.lang.Record
io.camunda.zeebe.gateway.impl.job.JobActivationResponse
public record JobActivationResponse(long key, JobBatchRecord brokerResponse, long maxResponseSize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionJobActivationResponse(long key, JobBatchRecord brokerResponse, long maxResponseSize) Creates an instance of aJobActivationResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebrokerResponserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longkey()Returns the value of thekeyrecord component.longReturns the value of themaxResponseSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobActivationResponse
Creates an instance of aJobActivationResponserecord class.- Parameters:
key- the value for thekeyrecord componentbrokerResponse- the value for thebrokerResponserecord componentmaxResponseSize- the value for themaxResponseSizerecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
key
public long key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
brokerResponse
Returns the value of thebrokerResponserecord component.- Returns:
- the value of the
brokerResponserecord component
-
maxResponseSize
public long maxResponseSize()Returns the value of themaxResponseSizerecord component.- Returns:
- the value of the
maxResponseSizerecord component
-