Class DefaultMessenger

    • Constructor Detail

      • DefaultMessenger

        public DefaultMessenger()
    • Method Detail

      • sendSingleChannelMessageQueryAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<ChannelMessage> sendSingleChannelMessageQueryAsync​(@NotNull
                                                                                                                       @NotNull ChannelMessage channelMessage)
        Description copied from interface: CloudMessenger
        Sends a channel message into the cluster and waits for the result from the receivers. This method only returns the first of all received messages.
        Specified by:
        sendSingleChannelMessageQueryAsync in interface CloudMessenger
        Parameters:
        channelMessage - the channel message to be sent
        Returns:
        the response of the first receiver
      • sendSingleChannelMessageQuery

        public ChannelMessage sendSingleChannelMessageQuery​(@NotNull
                                                            @NotNull ChannelMessage channelMessage)
        Description copied from interface: CloudMessenger
        Sends a channel message into the cluster and waits for the result from the receivers. This method only returns the first of all received messages.
        Specified by:
        sendSingleChannelMessageQuery in interface CloudMessenger
        Parameters:
        channelMessage - the channel message to be sent
        Returns:
        the response of the first receiver
      • sendChannelMessageQuery

        @NotNull
        public @NotNull java.util.Collection<ChannelMessage> sendChannelMessageQuery​(@NotNull
                                                                                     @NotNull ChannelMessage channelMessage)
        Description copied from interface: CloudMessenger
        Sends a channel message into the cluster and waits for the result from the receivers.
        Specified by:
        sendChannelMessageQuery in interface CloudMessenger
        Parameters:
        channelMessage - the channel message to be sent
        Returns:
        a collection containing the responses from all receivers