public RiakNode setMinConnections ( int minConnections ) { stateCheck ( State . CREATED , State . RUNNING , State . HEALTH_CHECKING ) ; if ( minConnections <= getMaxConnections ( ) ) { this . minConnections = minConnections ; } else { throw new IllegalArgumentException ( "Min connections greater than max connections" ) ; } // TODO: Start / reap delta? return this ; }
Sets the minimum number of active connections to be maintained .