All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tvd12.ezydata.hazelcast.EzyMongoDatabaseHazelcastFactory Maven / Gradle / Ivy

The newest version!
package com.tvd12.ezydata.hazelcast;

import com.mongodb.client.MongoDatabase;
import com.tvd12.ezydata.hazelcast.mapstore.EzyMapstoreCreator;
import com.tvd12.ezydata.hazelcast.mapstore.EzyMongoDatabaseMapstoreCreator;
import com.tvd12.ezydata.mongodb.EzyMongoDatabaseAware;
import lombok.Setter;

@Setter
public class EzyMongoDatabaseHazelcastFactory
    extends EzyAbstractHazelcastFactory
    implements EzyMongoDatabaseAware {

    protected MongoDatabase database;

    @Override
    protected EzyMapstoreCreator newMapstoreCreator() {
        EzyMongoDatabaseMapstoreCreator creator = newDatabaseMapstoreCreator();
        creator.setDatabase(database);
        return creator;
    }

    protected EzyMongoDatabaseMapstoreCreator newDatabaseMapstoreCreator() {
        return new EzyMongoDatabaseMapstoreCreator();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy