Examples of FluentWritingConfig


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
Copyright © 2018 www.massapi.com. 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.