Class NetworkHandler.Options

  • Enclosing class:
    NetworkHandler

    public static class NetworkHandler.Options
    extends Object
    NetworkHandler Options
    • Constructor Detail

      • Options

        public Options()
    • Method Detail

      • ofConnectTimeout

        public static NetworkHandler.Options ofConnectTimeout​(int connectTimeout)
        Set the connecting timeout
        Parameters:
        connectTimeout - the connecting timeout
        Returns:
        the configured options
      • ofWriteTimeout

        public static NetworkHandler.Options ofWriteTimeout​(int writeTimeout)
        Set the writing timeout
        Parameters:
        writeTimeout - the writing timeout
        Returns:
        the configured options
      • ofReadTimeout

        public static NetworkHandler.Options ofReadTimeout​(int readTimeout)
        Set the reading timeout
        Parameters:
        readTimeout - the reading timeout
        Returns:
        the configured options
      • setConnectTimeout

        public NetworkHandler.Options setConnectTimeout​(int connectTimeout)
        Set the connecting timeout
        Parameters:
        connectTimeout - the connecting timeout
        Returns:
        itself
      • setReadTimeout

        public NetworkHandler.Options setReadTimeout​(int readTimeout)
        Set the reading timeout
        Parameters:
        readTimeout - the reading timeout
        Returns:
        itself
      • setWriteTimeout

        public NetworkHandler.Options setWriteTimeout​(int writeTimeout)
        Set the writing timeout
        Parameters:
        writeTimeout - the writing timeout
        Returns:
        itself