Commons/src/main/java/eu/univento/commons/database/AsyncMongoDB.java

24 lines
525 B
Java
Raw Normal View History

2016-08-02 23:53:40 +02:00
package eu.univento.commons.database;
import lombok.Getter;
2016-08-02 23:53:40 +02:00
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
2016-08-02 23:53:40 +02:00
/**
* @author joethei
* @version 0.1
*/
public class AsyncMongoDB {
private ExecutorService executor;
@Getter
private MongoDB mongoDB;
2016-08-02 23:53:40 +02:00
public AsyncMongoDB(String host, int port, String user, String password, String database) {
mongoDB = new MongoDB(host, port, user, password, database);
executor = Executors.newCachedThreadPool();
2016-08-02 23:53:40 +02:00
}
}