Record Class BrokerRejection
java.lang.Object
java.lang.Record
io.camunda.zeebe.broker.client.api.dto.BrokerRejection
- Record Components:
intent- the intent of the command that was rejectedkey- the key of the command that was rejectedtype- the type of the rejectionreason- the reason for the rejection
public record BrokerRejection(Intent intent, long key, RejectionType type, String reason)
extends Record
Represents a command rejection from the broker.
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerRejection(Intent intent, long key, RejectionType type, String reason) Creates an instance of aBrokerRejectionrecord class.BrokerRejection(Intent intent, long key, RejectionType type, org.agrona.DirectBuffer reason) -
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.intent()Returns the value of theintentrecord component.longkey()Returns the value of thekeyrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
intent
Returns the value of theintentrecord component.- Returns:
- the value of the
intentrecord component
-
key
public long key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-