Package com.graphaware.runtime.write

Examples of com.graphaware.runtime.write.FluentWritingConfig


    }

    private static WritingConfig createWritingConfig(Config config) {
        DatabaseWriterType databaseWriterType = config.get(DATABASE_WRITER_TYPE_SETTING);

        FluentWritingConfig result = FluentWritingConfig.defaultConfiguration();

        if (databaseWriterType != null) {
            result = result.withWriterType(databaseWriterType);
        }

        if (config.get(WRITER_QUEUE_SIZE) != null) {
            result = result.withQueueSize(config.get(WRITER_QUEUE_SIZE));
        }

        if (config.get(WRITER_BATCH_SIZE) != null) {
            result = result.withBatchSize(config.get(WRITER_BATCH_SIZE));
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of com.graphaware.runtime.write.FluentWritingConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.