use of org.apereo.cas.configuration.model.support.couchbase.serviceregistry.CouchbaseServiceRegistryProperties in project cas by apereo.
the class CouchbaseServiceRegistryConfiguration method serviceRegistryCouchbaseClientFactory.
/**
* Service registry couchbase client factory couchbase client factory.
*
* @return the couchbase client factory
*/
@RefreshScope
@Bean
public CouchbaseClientFactory serviceRegistryCouchbaseClientFactory() {
final CouchbaseServiceRegistryProperties couchbase = casProperties.getServiceRegistry().getCouchbase();
final Set<String> nodes = StringUtils.commaDelimitedListToSet(couchbase.getNodeSet());
return new CouchbaseClientFactory(nodes, couchbase.getBucket(), couchbase.getPassword(), Beans.newDuration(couchbase.getTimeout()).toMillis(), CouchbaseServiceRegistry.UTIL_DOCUMENT, CouchbaseServiceRegistry.ALL_VIEWS);
}
Aggregations