public class ConsolePersistReader extends Object implements StreamsPersistReader
Modifier and Type | Field and Description |
---|---|
protected InputStream |
inputStream |
protected Queue<StreamsDatum> |
persistQueue |
Constructor and Description |
---|
ConsolePersistReader() |
ConsolePersistReader(InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
String |
getId() |
boolean |
isRunning() |
void |
prepare(Object configuration) |
StreamsResultSet |
readAll() |
StreamsResultSet |
readCurrent() |
StreamsResultSet |
readNew(BigInteger sequence) |
StreamsResultSet |
readRange(org.joda.time.DateTime start,
org.joda.time.DateTime end) |
void |
startStream() |
protected volatile Queue<StreamsDatum> persistQueue
protected InputStream inputStream
public ConsolePersistReader()
public ConsolePersistReader(InputStream inputStream)
public String getId()
getId
in interface StreamsOperation
public void prepare(Object configuration)
prepare
in interface StreamsOperation
public void cleanUp()
cleanUp
in interface StreamsOperation
public void startStream()
startStream
in interface StreamsProvider
public StreamsResultSet readAll()
readAll
in interface StreamsPersistReader
public StreamsResultSet readCurrent()
readCurrent
in interface StreamsProvider
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.