public class TimeStream extends AbstractStream
| Modifier and Type | Field and Description |
|---|---|
(package private) Long |
gap |
(package private) String |
interval |
(package private) String |
key |
(package private) long |
last |
closed, count, id, in, limit, log, prefix, seqId, sequenceKey, urlSOURCE_KEY| Constructor and Description |
|---|
TimeStream() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInterval() |
String |
getKey() |
Data |
readNext() |
void |
setInterval(String interval) |
void |
setKey(String key) |
close, getId, getInputStream, getLimit, getPrefix, getSequenceKey, getUrl, init, read, setId, setLimit, setPrefix, setSequenceKey, setUrlpublic String getInterval()
@Parameter(description="The time gap/rate at which this stream should provide items.", required=true) public void setInterval(String interval)
interval - the interval to setpublic String getKey()
@Parameter(description="The name of the attribute that should hold the timestamp, defaults to `@timestamp`", required=false) public void setKey(String key)
key - the key to setpublic Data readNext() throws Exception
readNext in class AbstractStreamExceptionstream.io.AbstractStream#readItem(stream.Data)Copyright © 2018. All rights reserved.