Interface INetwork

  • All Known Implementing Classes:
    NettyNetwork

    public interface INetwork
    A network is one of the most important parts of this server for the main purpose of communication. This class help create a new network instance by your own configurations, see BaseConfiguration.
    Author:
    kong
    • Method Detail

      • start

        void start​(IEventManager eventManager,
                   BaseConfiguration configuration)
            throws java.io.IOException,
                   java.lang.InterruptedException
        Start a new network for communication
        Parameters:
        eventManager - the system event management
        configuration - your own configuration
        Throws:
        java.lang.InterruptedException - thrown when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity.
        java.io.IOException - signals that an I/O exception of some sort has occurred.
      • shutdown

        void shutdown()
        Shutdown the network