Class DefaultMessenger
- java.lang.Object
-
- de.dytanic.cloudnet.driver.provider.DefaultMessenger
-
- All Implemented Interfaces:
CloudMessenger
public abstract class DefaultMessenger extends java.lang.Object implements CloudMessenger
-
-
Constructor Summary
Constructors Constructor Description DefaultMessenger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.Collection<ChannelMessage>sendChannelMessageQuery(@NotNull ChannelMessage channelMessage)Sends a channel message into the cluster and waits for the result from the receivers.ChannelMessagesendSingleChannelMessageQuery(@NotNull ChannelMessage channelMessage)Sends a channel message into the cluster and waits for the result from the receivers.@NotNull de.dytanic.cloudnet.common.concurrent.ITask<ChannelMessage>sendSingleChannelMessageQueryAsync(@NotNull ChannelMessage channelMessage)Sends a channel message into the cluster and waits for the result from the receivers.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.dytanic.cloudnet.driver.provider.CloudMessenger
sendChannelMessage, sendChannelMessage, sendChannelMessage, sendChannelMessage, sendChannelMessage, sendChannelMessageQueryAsync
-
-
-
-
Method Detail
-
sendSingleChannelMessageQueryAsync
@NotNull public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<ChannelMessage> sendSingleChannelMessageQueryAsync(@NotNull @NotNull ChannelMessage channelMessage)
Description copied from interface:CloudMessengerSends 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:
sendSingleChannelMessageQueryAsyncin interfaceCloudMessenger- 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:CloudMessengerSends 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:
sendSingleChannelMessageQueryin interfaceCloudMessenger- 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:CloudMessengerSends a channel message into the cluster and waits for the result from the receivers.- Specified by:
sendChannelMessageQueryin interfaceCloudMessenger- Parameters:
channelMessage- the channel message to be sent- Returns:
- a collection containing the responses from all receivers
-
-