public class MongoDBConnectionFactory extends BaseConnectionFactory<MongoDBConnection>
Constructor and Description |
---|
MongoDBConnectionFactory(MongoDBConfiguration mongoDBConfiguration) |
MongoDBConnectionFactory(org.springframework.data.mongodb.core.MongoTemplate template) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
MongoDBConnection |
getConnection() |
getConfigurationPrefix, getTranslatorName
public MongoDBConnectionFactory(org.springframework.data.mongodb.core.MongoTemplate template)
public MongoDBConnectionFactory(MongoDBConfiguration mongoDBConfiguration)
public MongoDBConnection getConnection() throws Exception
Exception
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class BaseConnectionFactory<MongoDBConnection>
IOException
Copyright © 2020. All rights reserved.