public interface RealTimeLineReader<T>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Any cleanup
|
void |
dispose()
Un-initialize reader, so that it maybe re consumed
Except for the main Resource & configuration set by Spring context
all other instance variables used will be re-set/disposed/cleared. |
String |
getSourceLocation() |
boolean |
hasNext()
True if there is another record that can be read by the parser, false implies end of parse/read
|
void |
init()
Allow lazy initialization of Reader in cases where the resource may not be known @
PostConstruct time |
boolean |
isInitialized()
Allow the calling API to determine if the reader has been initialized via
init() or PostConstruct phase
If not init() should be called upon the instance. |
T |
next()
Read line from Source, on Record construction complete return the Record.
|
T next() throws Exception
line - as StringExceptionboolean hasNext()
String getSourceLocation()
void init() throws Exception
PostConstruct timeExceptionboolean isInitialized()
throws Exception
init() or PostConstruct phase
init() should be called upon the instance.ExceptionCopyright © 2018. All rights reserved.