Class PacketServerChannelMessage

java.lang.Object
eu.cloudnetservice.driver.network.protocol.BasePacket
eu.cloudnetservice.driver.network.def.PacketServerChannelMessage
All Implemented Interfaces:
Packet

public final class PacketServerChannelMessage extends 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
  • Constructor Details

    • PacketServerChannelMessage

      public PacketServerChannelMessage(@NonNull @NonNull 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.