Package com.tenio.network
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, seeBaseConfiguration
.- Author:
- kong
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
shutdown()
Shutdown the networkvoid
start(IEventManager eventManager, BaseConfiguration configuration)
Start a new network for communication
-
-
-
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 managementconfiguration
- 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
-
-