Class ChannelMessage.Builder

java.lang.Object
eu.cloudnetservice.driver.channel.ChannelMessage.Builder
Enclosing class:
ChannelMessage

public static final class ChannelMessage.Builder extends Object
A builder for a channel message. This class should be used over direct constructor access as allows better customization and validation of a channel message which gets created. Required properties are:
  • channel, can be empty
  • message, can be empty
  • at least one target for the message

If no sender of the message is given the current network component will be used as the sender of the message.

Since:
4.0