Package com.axelor.workflow.message
Record Class MessageDelivery
java.lang.Object
java.lang.Record
com.axelor.workflow.message.MessageDelivery
- Record Components:
binding-message.name,key,dataandsentAtcascadeId- the chain of deliveries this belongs todepth- how many turns deep in that chain this message was
public record MessageDelivery(Map<String,Object> binding, String cascadeId, int depth)
extends Record
What a delivered message hands to the walk it wakes: the binding an author reads, and the cascade
bookkeeping they never see.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageDelivery(Map<String, Object> binding, String cascadeId, int depth) Creates an instance of aMessageDeliveryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinding()Returns the value of thebindingrecord component.Returns the value of thecascadeIdrecord component.intdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static MessageDeliveryof(MetaWorkflowMessage message) Read one off the row the poll is offering.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
of
Read one off the row the poll is offering. -
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 '=='. -
binding
Returns the value of thebindingrecord component.- Returns:
- the value of the
bindingrecord component
-
cascadeId
Returns the value of thecascadeIdrecord component.- Returns:
- the value of the
cascadeIdrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-