Interface INetworkChannelHandler


  • public interface INetworkChannelHandler
    A networkChannelHandler provides the operation with the INetworkChannel
    See Also:
    INetworkChannel
    • Method Detail

      • handleChannelInitialize

        void handleChannelInitialize​(INetworkChannel channel)
                              throws java.lang.Exception
        Handles an new open connected channel
        Parameters:
        channel - the providing channel on that this handler is sets on this
        Throws:
        java.lang.Exception
      • handlePacketReceive

        boolean handlePacketReceive​(INetworkChannel channel,
                                    Packet packet)
                             throws java.lang.Exception
        Handles a incoming packet from a provided channel, that contains that channel handler
        Parameters:
        channel - the providing channel on that this handler is sets on this
        packet - the packet, that will received from the remote component
        Returns:
        should return true that, the packet that was received is allowed to handle from the packet listeners at the packetListenerRegistry
        Throws:
        java.lang.Exception
      • handleChannelClose

        void handleChannelClose​(INetworkChannel channel)
                         throws java.lang.Exception
        Handles the close phase from a NetworkChannel
        Parameters:
        channel - the providing channel on that this handler is sets on this
        Throws:
        java.lang.Exception