public RiakNode setConnectionTimeout ( int connectionTimeoutInMillis ) { stateCheck ( State . CREATED , State . RUNNING , State . HEALTH_CHECKING ) ; this . connectionTimeout = connectionTimeoutInMillis ; bootstrap . option ( ChannelOption . CONNECT_TIMEOUT_MILLIS , connectionTimeout ) ; return this ; }
Sets the connection timeout for new connections .