Class ServerConnectRequest


  • public class ServerConnectRequest
    extends Object
    A request to connect a server.
    • Method Detail

      • getTarget

        @NonNull
        public @NonNull ServerInfo getTarget()
        Target server to connect to.
      • getConnectTimeout

        public int getConnectTimeout()
        Timeout in milliseconds for request.
      • isRetry

        public boolean isRetry()
        Should the player be attempted to connect to the next server in their queue if the initial request fails.
      • setConnectTimeout

        public void setConnectTimeout​(int connectTimeout)
        Timeout in milliseconds for request.
      • setRetry

        public void setRetry​(boolean retry)
        Should the player be attempted to connect to the next server in their queue if the initial request fails.