From ee3efd75d7275610316b53d962bdfa11b2bc1ad8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 3 Aug 2014 18:12:44 +1000 Subject: [PATCH] Change a few aspects from last PR --- .../net/md_5/bungee/api/config/ServerInfo.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/api/src/main/java/net/md_5/bungee/api/config/ServerInfo.java b/api/src/main/java/net/md_5/bungee/api/config/ServerInfo.java index 580919b8..f1273f2c 100644 --- a/api/src/main/java/net/md_5/bungee/api/config/ServerInfo.java +++ b/api/src/main/java/net/md_5/bungee/api/config/ServerInfo.java @@ -53,14 +53,12 @@ public interface ServerInfo boolean canAccess(CommandSender sender); /** - * Send data by any available means to this server. + * Send data by any available means to this server. This data may be queued + * and there is no guarantee of its timely arrival. * * @param channel the channel to send this data via * @param data the data to send - * @deprecated use #sendData(String, byte[], boolean). Deprecated to highlight queuing behaviour of this method. - * @see #sendData(String, byte[], boolean) */ - @Deprecated void sendData(String channel, byte[] data); /** @@ -68,12 +66,12 @@ public interface ServerInfo * * @param channel the channel to send this data via * @param data the data to send - * @param queueIfEmpty if set to true and this server is empty, the data will be queued until a player - * joins that server. - * @return true if the message was sent immediately, false otherwise (if queueIfEmpty is - * true, it has been queued, if it is false it has been discarded). + * @param realTime fail fast if the message cannot be sent immediately. + * @return true if the message was sent immediately, + * false otherwise (if realTime is true, it has been queued, if + * it is false it has been discarded). */ - boolean sendData(String channel, byte[] data, boolean queueIfEmpty); + boolean sendData(String channel, byte[] data, boolean realTime); /** * Asynchronously gets the current player count on this server.