Record Class ProxyMessageEvent
java.lang.Object
java.lang.Record
net.flectone.pulse.model.event.message.ProxyMessageEvent
- All Implemented Interfaces:
Event
-
Nested Class Summary
Nested classes/interfaces inherited from interface Event
Event.Priority -
Constructor Summary
ConstructorsConstructorDescriptionProxyMessageEvent(boolean cancelled, boolean processed, boolean sentByThisServer, String server, ModuleName name, FEntity sender, UUID uuid, byte[] payload) Creates an instance of aProxyMessageEventrecord class.ProxyMessageEvent(boolean sentByThisServer, String server, ModuleName name, FEntity sender, UUID uuid, byte[] payload) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.byte[]payload()Returns the value of thepayloadrecord component.booleanReturns the value of theprocessedrecord component.sender()Returns the value of thesenderrecord component.booleanReturns the value of thesentByThisServerrecord component.server()Returns the value of theserverrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.withCancelled(boolean cancelled) withName(ModuleName name) withPayload(byte[] payload) withProcessed(boolean processed) withSender(FEntity sender) withSentByThisServer(boolean sentByThisServer) withServer(String server)
-
Constructor Details
-
ProxyMessageEvent
public ProxyMessageEvent(boolean sentByThisServer, String server, ModuleName name, FEntity sender, UUID uuid, byte[] payload) -
ProxyMessageEvent
public ProxyMessageEvent(boolean cancelled, boolean processed, boolean sentByThisServer, String server, ModuleName name, FEntity sender, UUID uuid, byte[] payload) Creates an instance of aProxyMessageEventrecord class.- Parameters:
cancelled- the value for thecancelledrecord componentprocessed- the value for theprocessedrecord componentsentByThisServer- the value for thesentByThisServerrecord componentserver- the value for theserverrecord componentname- the value for thenamerecord componentsender- the value for thesenderrecord componentuuid- the value for theuuidrecord componentpayload- the value for thepayloadrecord component
-
-
Method Details
-
openPayload
-
withCancelled
- Specified by:
withCancelledin interfaceEvent- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withProcessed
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSentByThisServer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withServer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSender
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUuid
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPayload
- 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
-
processed
public boolean processed()Returns the value of theprocessedrecord component.- Returns:
- the value of the
processedrecord component
-
sentByThisServer
public boolean sentByThisServer()Returns the value of thesentByThisServerrecord component.- Returns:
- the value of the
sentByThisServerrecord component
-
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
payload
public byte[] payload()Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-