public class Neo4jBoltPersistReader extends Object implements StreamsPersistReader
Modifier and Type | Class and Description |
---|---|
class |
Neo4jBoltPersistReader.Neo4jBoltPersistReaderTask |
Modifier and Type | Field and Description |
---|---|
protected Neo4jBoltClient |
client |
protected ReadWriteLock |
lock |
static org.slf4j.Logger |
LOGGER |
protected Queue<StreamsDatum> |
persistQueue |
protected org.neo4j.driver.v1.StatementResult |
statementResult |
static String |
STREAMS_ID |
Constructor and Description |
---|
Neo4jBoltPersistReader()
Neo4jBoltPersistReader constructor - resolves Neo4jReaderConfiguration from JVM 'neo4j'.
|
Neo4jBoltPersistReader(Neo4jReaderConfiguration config)
Neo4jBoltPersistReader constructor - uses supplied Neo4jReaderConfiguration.
|
Neo4jBoltPersistReader(Queue<StreamsDatum> persistQueue)
Neo4jBoltPersistReader constructor - uses supplied persistQueue.
|
Modifier and Type | Method and Description |
---|---|
protected Optional<StreamsDatum> |
buildDatum(org.neo4j.driver.v1.Record record) |
void |
cleanUp() |
String |
getId() |
Queue<StreamsDatum> |
getPersistQueue() |
boolean |
isRunning() |
void |
prepare(Object configurationObject) |
StreamsResultSet |
readAll() |
StreamsResultSet |
readCurrent() |
StreamsResultSet |
readNew(BigInteger sequence) |
StreamsResultSet |
readRange(org.joda.time.DateTime start,
org.joda.time.DateTime end) |
void |
setPersistQueue(Queue<StreamsDatum> persistQueue) |
void |
startStream() |
void |
stop() |
protected void |
write(StreamsDatum entry) |
public static final String STREAMS_ID
public static final org.slf4j.Logger LOGGER
protected volatile Queue<StreamsDatum> persistQueue
protected Neo4jBoltClient client
protected org.neo4j.driver.v1.StatementResult statementResult
protected final ReadWriteLock lock
public Neo4jBoltPersistReader()
public Neo4jBoltPersistReader(Neo4jReaderConfiguration config)
config
- configpublic Neo4jBoltPersistReader(Queue<StreamsDatum> persistQueue)
persistQueue
- persistQueuepublic void setPersistQueue(Queue<StreamsDatum> persistQueue)
public Queue<StreamsDatum> getPersistQueue()
public void stop()
public String getId()
getId
in interface StreamsOperation
public void prepare(Object configurationObject)
prepare
in interface StreamsOperation
public void cleanUp()
cleanUp
in interface StreamsOperation
protected Optional<StreamsDatum> buildDatum(org.neo4j.driver.v1.Record record)
public StreamsResultSet readAll()
readAll
in interface StreamsPersistReader
public void startStream()
startStream
in interface StreamsProvider
public StreamsResultSet readCurrent()
readCurrent
in interface StreamsProvider
protected void write(StreamsDatum entry)
public StreamsResultSet readNew(BigInteger sequence)
readNew
in interface StreamsPersistReader
readNew
in interface StreamsProvider
public StreamsResultSet readRange(org.joda.time.DateTime start, org.joda.time.DateTime end)
readRange
in interface StreamsPersistReader
readRange
in interface StreamsProvider
public boolean isRunning()
isRunning
in interface StreamsProvider
Copyright © 2018 The Apache Software Foundation. All rights reserved.