Number of fix Login retry while connecting to the Cluster couchbase Environment env

environment = ClusterEnvironment.builder()
.ioConfig(
ClusterEnvironment.builder().ioConfig().numKvConnections(couchbaseProps.getKvConnections())
))
.build();
cluster = Cluster.connect(couchbaseProps.getHostname(),
ClusterOptions.clusterOptions(couchbaseProps.getUsername(), couchbaseProps.getPassword())

						.environment(environment)
						);

how can be set number of fix retry if user/password in the given incorrect ,currently its running infinite time