Interface ReconnectHandler

All Known Implementing Classes:
AbstractReconnectHandler

public interface ReconnectHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close all connections indicating that the proxy is about to shutdown and all data should be saved.
    Gets the initial server name for a connecting player.
    void
    Save all pending reconnect locations.
    void
    Save the server of this player before they disconnect so it can be retrieved later.
  • Method Details

    • 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.