Interface ChannelConfigurator


  • public interface ChannelConfigurator
    Configurator responsible for initial SelectableChannel configuration. Such a configurator(s) could be used by NIOTransport to customize configuration of newly created NIOConnections. Depending on NIOTransport nature, could be used both for client and server side connections.
    Author:
    Alexey Stashok
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void postConfigure​(NIOTransport transport, java.nio.channels.SelectableChannel channel)
      This method is called by a NIOTransport to configure newly created SelectableChannel once it's been connected/accepted and become ready to use.
      void preConfigure​(NIOTransport transport, java.nio.channels.SelectableChannel channel)
      This method is called by a NIOTransport to configure newly created SelectableChannel at the very early stage, right after the object has been created.
    • Method Detail

      • preConfigure

        void preConfigure​(NIOTransport transport,
                          java.nio.channels.SelectableChannel channel)
                   throws java.io.IOException
        This method is called by a NIOTransport to configure newly created SelectableChannel at the very early stage, right after the object has been created.
        Parameters:
        transport -
        channel -
        Throws:
        java.io.IOException
      • postConfigure

        void postConfigure​(NIOTransport transport,
                           java.nio.channels.SelectableChannel channel)
                    throws java.io.IOException
        This method is called by a NIOTransport to configure newly created SelectableChannel once it's been connected/accepted and become ready to use.
        Parameters:
        transport -
        channel -
        Throws:
        java.io.IOException