Class DatagramConnectorDelegate

    • Constructor Detail

      • DatagramConnectorDelegate

        public DatagramConnectorDelegate​(IoConnector wrapper,
                                         java.util.concurrent.Executor executor)
        Creates a new instance.
    • Method Detail

      • connect

        public ConnectFuture connect​(java.net.SocketAddress address,
                                     IoHandler handler,
                                     IoServiceConfig config)
        Description copied from interface: IoConnector
        Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
        Specified by:
        connect in interface IoConnector
        config - the configuration
        Returns:
        ConnectFuture that will tell the result of the connection attempt
      • connect

        public ConnectFuture connect​(java.net.SocketAddress address,
                                     java.net.SocketAddress localAddress,
                                     IoHandler handler,
                                     IoServiceConfig config)
        Description copied from interface: IoConnector
        Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
        Specified by:
        connect in interface IoConnector
        config - the configuration
        Returns:
        ConnectFuture that will tell the result of the connection attempt
      • setDefaultConfig

        public void setDefaultConfig​(DatagramConnectorConfig defaultConfig)
        Sets the config this connector will use by default.
        Parameters:
        defaultConfig - the default config.
        Throws:
        java.lang.NullPointerException - if the specified value is null.
      • closeSession

        public void closeSession​(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session)
      • flushSession

        public void flushSession​(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session)
      • updateTrafficMask

        public void updateTrafficMask​(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session)