Interface ChannelConfig

    • Method Detail

      • setOptions

        void setOptions​(java.util.Map<java.lang.String,​java.lang.Object> options)
        Sets the configuration properties from the specified Map.
      • setOption

        boolean setOption​(java.lang.String name,
                          java.lang.Object value)
        Sets a configuration property with the specified name and value. To override this method properly, you must call the super class:
         public boolean setOption(String name, Object value) {
             if (super.setOption(name, value)) {
                 return true;
             }
        
             if (name.equals("additionalOption")) {
                 ....
                 return true;
             }
        
             return false;
         }
         
        Returns:
        true if and only if the property has been set
      • getPipelineFactory

        ChannelPipelineFactory getPipelineFactory()
        Returns the ChannelPipelineFactory which will be used when a child channel is created. If the Channel does not create a child channel, this property is not used at all, and therefore will be ignored.
      • setPipelineFactory

        void setPipelineFactory​(ChannelPipelineFactory pipelineFactory)
        Sets the ChannelPipelineFactory which will be used when a child channel is created. If the Channel does not create a child channel, this property is not used at all, and therefore will be ignored.
      • getConnectTimeoutMillis

        int getConnectTimeoutMillis()
        Returns the connect timeout of the channel in milliseconds. If the Channel does not support connect operation, this property is not used at all, and therefore will be ignored.
        Returns:
        the connect timeout in milliseconds. 0 if disabled.
      • setConnectTimeoutMillis

        void setConnectTimeoutMillis​(int connectTimeoutMillis)
        Sets the connect timeout of the channel in milliseconds. If the Channel does not support connect operation, this property is not used at all, and therefore will be ignored.
        Parameters:
        connectTimeoutMillis - the connect timeout in milliseconds. 0 to disable.