public abstract class BaseNeo4jWriter extends Object implements Neo4jWriter
Writer.
Extending classes can choose how they write to the database, but must make sure that tasks that are submitted to it
run within the context of a transaction.| Modifier and Type | Field and Description |
|---|---|
protected org.neo4j.graphdb.GraphDatabaseService |
database |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseNeo4jWriter(org.neo4j.graphdb.GraphDatabaseService database)
Create a new database writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start() |
void |
stop() |
void |
write(Runnable task) |
void |
write(Runnable task,
String id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteprotected BaseNeo4jWriter(org.neo4j.graphdb.GraphDatabaseService database)
database - to write to.public void write(Runnable task)
write in interface Neo4jWriterpublic void write(Runnable task, String id)
write in interface Neo4jWriterCopyright © 2013-2016–2020 Graph Aware Limited. All rights reserved.