public final class NullWriter extends Object implements Neo4jWriter
Neo4jWriter that throws an UnsupportedOperationException any time it is used for writing. Its
purpose is to serve as a placeholder for places where the use of Neo4jWriter does not make sense, e.g.
when using org.neo4j.unsafe.batchinsert.BatchInserters. Singleton.| Modifier and Type | Method and Description |
|---|---|
static NullWriter |
getInstance()
Get an instance of this writer.
|
void |
start() |
void |
stop() |
<T> T |
write(Callable<T> task,
String id,
int waitMillis) |
void |
write(Runnable task) |
void |
write(Runnable task,
String id) |
public static NullWriter getInstance()
public void write(Runnable task)
write in interface Neo4jWriterpublic void write(Runnable task, String id)
write in interface Neo4jWriterpublic <T> T write(Callable<T> task, String id, int waitMillis)
write in interface Neo4jWriterCopyright © 2013-2016–2020 Graph Aware Limited. All rights reserved.