java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.ProcessMessageEvent
- All Implemented Interfaces:
ExternalEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.Returns the value of themessageId
record component.Returns the value of theshardBlockId
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
ProcessMessageEvent
public ProcessMessageEvent(String type, String message, Object error, String shardBlockId, String messageId) Creates an instance of aProcessMessageEvent
record class.- Parameters:
type
- the value for thetype
record componentmessage
- the value for themessage
record componenterror
- the value for theerror
record componentshardBlockId
- the value for theshardBlockId
record componentmessageId
- the value for themessageId
record component
-
-
Method Details
-
toString
-
hashCode
-
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)
. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-
shardBlockId
Returns the value of theshardBlockId
record component.- Returns:
- the value of the
shardBlockId
record component
-
messageId
Returns the value of themessageId
record component.- Returns:
- the value of the
messageId
record component
-