public class TxPerTaskWriter extends SingleThreadedWriter implements Neo4jWriter
SingleThreadedWriter that writes each task in a separate transaction.databaseDEFAULT_QUEUE_CAPACITY, queue| Constructor and Description |
|---|
TxPerTaskWriter(org.neo4j.graphdb.GraphDatabaseService database)
Construct a new writer with a default queue capacity of 10,000.
|
TxPerTaskWriter(org.neo4j.graphdb.GraphDatabaseService database,
int queueCapacity)
Construct a new writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> RunnableFuture<T> |
createTask(Callable<T> task)
Create a runnable future from the given task.
|
protected void |
runOneIteration() |
block, offer, start, stop, write, write, writeequals, hashCode, logEmptyQueue, loggingFrequencyMs, offer, scheduler, shutDownaddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, startUp, state, stopAsync, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitwrite, write, writepublic TxPerTaskWriter(org.neo4j.graphdb.GraphDatabaseService database)
database - to write to.public TxPerTaskWriter(org.neo4j.graphdb.GraphDatabaseService database,
int queueCapacity)
database - to write to.queueCapacity - capacity of the queue.protected <T> RunnableFuture<T> createTask(Callable<T> task)
createTask in class SingleThreadedWritertask - task.Copyright © 2013-2016–2020 Graph Aware Limited. All rights reserved.