Interface NetworkAdapter


  • @Role
    public interface NetworkAdapter
    Handle all the actual communication with the network.

    It's the entry point of the chosen implementation for the actual event distribution.

    Since:
    2.0RC1
    Version:
    $Id: 5e3ec0ad7d1fc7b896a2ed83cdad964ab1191579 $
    • Method Detail

      • send

        void send​(RemoteEventData remoteEvent)
        Send serializable event to the network depending of the implementation.
        Parameters:
        remoteEvent - the serializable event to send
      • stopChannel

        void stopChannel​(String channelId)
                  throws RemoteEventException
        Stop a running channel.
        Parameters:
        channelId - the identifier of the channel to stop
        Throws:
        RemoteEventException - error when trying to stop a running channel
      • startChannel

        void startChannel​(String channelId)
                   throws RemoteEventException
        Start a channel.
        Parameters:
        channelId - the identifier of the channel to start
        Throws:
        RemoteEventException - error when trying to start a channel