Interface ReconnectHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Close all connections indicating that the proxy is about to shutdown and all data should be saved.
      ServerInfo getServer​(ProxiedPlayer player)
      Gets the initial server name for a connecting player.
      void save()
      Save all pending reconnect locations.
      void setServer​(ProxiedPlayer player)
      Save the server of this player before they disconnect so it can be retrieved later.
    • Method Detail

      • getServer

        ServerInfo getServer​(ProxiedPlayer player)
        Gets the initial server name for a connecting player.
        Parameters:
        player - the connecting player
        Returns:
        the server to connect to
      • setServer

        void setServer​(ProxiedPlayer player)
        Save the server of this player before they disconnect so it can be retrieved later.
        Parameters:
        player - the player to save
      • save

        void save()
        Save all pending reconnect locations. Whilst not used for database connections, this method will be called at a predefined interval to allow the saving of reconnect files.
      • close

        void close()
        Close all connections indicating that the proxy is about to shutdown and all data should be saved. No new requests will be made after this method has been called.