Record Class MessagePrepareEvent
java.lang.Object
java.lang.Record
net.flectone.pulse.model.event.message.MessagePrepareEvent
- All Implemented Interfaces:
Event
public record MessagePrepareEvent(boolean cancelled, MessagePrepareEvent.Type type, ModuleName moduleName, String rawFormat, EventMetadata<?> eventMetadata)
extends Record
implements Event
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Event
Event.Priority -
Constructor Summary
ConstructorsConstructorDescriptionMessagePrepareEvent(boolean cancelled, MessagePrepareEvent.Type type, ModuleName moduleName, String rawFormat, EventMetadata<?> eventMetadata) Creates an instance of aMessagePrepareEventrecord class.MessagePrepareEvent(MessagePrepareEvent.Type type, ModuleName moduleName, String rawFormat, EventMetadata<?> eventMetadata) MessagePrepareEvent(ModuleName moduleName, String rawFormat, EventMetadata<?> eventMetadata) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelledrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventMetadatarecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanReturns the value of themoduleNamerecord component.Returns the value of therawFormatrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withCancelled(boolean cancelled) withEventMetadata(EventMetadata<?> eventMetadata) withModuleName(ModuleName moduleName) withRawFormat(String rawFormat)
-
Constructor Details
-
MessagePrepareEvent
-
MessagePrepareEvent
public MessagePrepareEvent(MessagePrepareEvent.Type type, ModuleName moduleName, String rawFormat, EventMetadata<?> eventMetadata) -
MessagePrepareEvent
public MessagePrepareEvent(boolean cancelled, MessagePrepareEvent.Type type, ModuleName moduleName, String rawFormat, EventMetadata<?> eventMetadata) Creates an instance of aMessagePrepareEventrecord class.- Parameters:
cancelled- the value for thecancelledrecord componenttype- the value for thetyperecord componentmoduleName- the value for themoduleNamerecord componentrawFormat- the value for therawFormatrecord componenteventMetadata- the value for theeventMetadatarecord component
-
-
Method Details
-
isForProxy
public boolean isForProxy() -
isForIntegration
public boolean isForIntegration() -
withCancelled
- Specified by:
withCancelledin interfaceEvent- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withModuleName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRawFormat
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEventMetadata
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
cancelled
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
rawFormat
Returns the value of therawFormatrecord component.- Returns:
- the value of the
rawFormatrecord component
-
eventMetadata
Returns the value of theeventMetadatarecord component.- Returns:
- the value of the
eventMetadatarecord component
-