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

poussecafe.spring.mongo.storage.SpringMongoDbStorage Maven / Gradle / Ivy

There is a newer version: 0.18.0
Show newest version
package poussecafe.spring.mongo.storage;

import poussecafe.storage.DirectMessageSending;
import poussecafe.storage.MessageSendingPolicy;
import poussecafe.storage.NoTransactionRunner;
import poussecafe.storage.Storage;
import poussecafe.storage.TransactionRunner;

public class SpringMongoDbStorage extends Storage {

    public static final String NAME = "spring-mongo";

    public static SpringMongoDbStorage instance() {
        return INSTANCE;
    }

    private static final SpringMongoDbStorage INSTANCE = new SpringMongoDbStorage();

    @Override
    protected MessageSendingPolicy initMessageSendingPolicy() {
        return new DirectMessageSending();
    }

    @Override
    protected TransactionRunner initTransactionRunner() {
        return new NoTransactionRunner();
    }

    private SpringMongoDbStorage() {

    }

    @Override
    public String name() {
        return NAME;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy