Package io.camunda.zeebe.logstreams.log
Record Class WriteContext.UserCommand
java.lang.Object
java.lang.Record
io.camunda.zeebe.logstreams.log.WriteContext.UserCommand
- All Implemented Interfaces:
WriteContext
- Enclosing interface:
WriteContext
public static record WriteContext.UserCommand(io.camunda.zeebe.protocol.record.intent.Intent intent)
extends Record
implements WriteContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.logstreams.log.WriteContext
WriteContext.Internal, WriteContext.InterPartition, WriteContext.ProcessingResult, WriteContext.Scheduled, WriteContext.UserCommand -
Constructor Summary
ConstructorsConstructorDescriptionUserCommand(io.camunda.zeebe.protocol.record.intent.Intent intent) Creates an instance of aUserCommandrecord class. -
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.io.camunda.zeebe.protocol.record.intent.Intentintent()Returns the value of theintentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserCommand
public UserCommand(io.camunda.zeebe.protocol.record.intent.Intent intent) Creates an instance of aUserCommandrecord class.- Parameters:
intent- the value for theintentrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
intent
public io.camunda.zeebe.protocol.record.intent.Intent intent()Returns the value of theintentrecord component.- Returns:
- the value of the
intentrecord component
-