public class FluentWritingConfig extends Object implements WritingConfig
WritingConfig with fluent interface.| Modifier and Type | Method and Description |
|---|---|
static FluentWritingConfig |
defaultConfiguration()
Create an instance of
FluentWritingConfig with default configuration. |
boolean |
equals(Object o) |
int |
hashCode() |
Neo4jWriter |
produceWriter(org.neo4j.graphdb.GraphDatabaseService database) |
FluentWritingConfig |
withBatchSize(int batchSize)
Return a new instance of this configuration with a different batch size.
|
FluentWritingConfig |
withQueueSize(int queueSize)
Return a new instance of this configuration with a different queue size.
|
FluentWritingConfig |
withWriterType(DatabaseWriterType writerType)
Return a new instance of this configuration with a different writer type.
|
public static FluentWritingConfig defaultConfiguration()
FluentWritingConfig with default configuration.public FluentWritingConfig withWriterType(DatabaseWriterType writerType)
writerType - of the new instance.public FluentWritingConfig withQueueSize(int queueSize)
DatabaseWriterTypes (so might be ignored).queueSize - of the new instance.public FluentWritingConfig withBatchSize(int batchSize)
DatabaseWriterTypes (so might be ignored).batchSize - of the new instance.public Neo4jWriter produceWriter(org.neo4j.graphdb.GraphDatabaseService database)
produceWriter in interface WritingConfigCopyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.