Class IoConfig.Builder

  • Enclosing class:
    IoConfig

    public static class IoConfig.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • enableMutationTokens

        public IoConfig.Builder enableMutationTokens​(boolean mutationTokensEnabled)
        Configures whether mutation tokens will be returned from the server for all mutation operations.
        Returns:
        this, for chaining
      • enableDnsSrv

        public IoConfig.Builder enableDnsSrv​(boolean dnsSrvEnabled)
      • enableTcpKeepAlives

        public IoConfig.Builder enableTcpKeepAlives​(boolean tcpKeepAlivesEnabled)
      • tcpKeepAliveTime

        public IoConfig.Builder tcpKeepAliveTime​(Duration tcpKeepAliveTime)
        Allows to customize the idle time after which a tcp keepalive gets fired.

        Please note that this setting only propagates to the OS on linux when the epoll transport is used. On all other platforms, the OS-configured time is used (and you need to tune it there if you want to customize the default behavior).

        Parameters:
        tcpKeepAliveTime - the custom keepalive time.
        Returns:
        this builder for chaining purposes.
      • captureTraffic

        public IoConfig.Builder captureTraffic​(ServiceType... serviceTypes)
        Captures the traffic for all services provided as an argument (all if empty).

        IMPORTANT: It is not enough to just enable traffic capturing, also TRACE level logging needs to be enabled for the couchbase namespace in your logger implementation.

        Note that this flag should only be enabled during development and for debugging purposes. When enabled it will add more overhead due to traffic parsing, logging and analysis.

        Returns:
        this IoConfig.Builder for chaining purposes.
      • numKvConnections

        public IoConfig.Builder numKvConnections​(int numKvConnections)
      • maxHttpConnections

        public IoConfig.Builder maxHttpConnections​(int maxHttpConnections)