Class ChannelMessagePacket
java.lang.Object
eu.cloudnetservice.driver.network.protocol.BasePacket
eu.cloudnetservice.driver.impl.network.standard.ChannelMessagePacket
- All Implemented Interfaces:
eu.cloudnetservice.driver.network.protocol.Packet
public final class ChannelMessagePacket
extends eu.cloudnetservice.driver.network.protocol.BasePacket
A packet which gets sent to indicate that a channel message should get processed. Sending this packet to a node will
cause the node to either process it or redirect it into the cluster if needed. When sent to a wrapper, the wrapper
will always post the receive event without further checks (the node is required to do these).
- Since:
- 4.0
-
Field Summary
Fields inherited from class eu.cloudnetservice.driver.network.protocol.BasePacket
channel, creationStamp, dataBuf, prioritized, uniqueId -
Constructor Summary
ConstructorsConstructorDescriptionChannelMessagePacket(@NonNull eu.cloudnetservice.driver.channel.ChannelMessage message, boolean wrapper) Constructs a new channel message packet instance. -
Method Summary
Methods inherited from class eu.cloudnetservice.driver.network.protocol.BasePacket
canEqual, channel, constructResponse, content, creation, equals, hashCode, prioritized, readable, toString, uniqueId, uniqueId
-
Constructor Details
-
ChannelMessagePacket
public ChannelMessagePacket(@NonNull @NonNull eu.cloudnetservice.driver.channel.ChannelMessage message, boolean wrapper) Constructs a new channel message packet instance.- Parameters:
message- the channel message (or content) which should be sent to the other component.wrapper- if the channel was sent by a wrapper component.- Throws:
NullPointerException- if the given channel message is null.
-