public class DaemonStream extends TupleStream implements Expressible
| Constructor and Description |
|---|
DaemonStream(StreamExpression expression,
StreamFactory factory) |
DaemonStream(TupleStream tupleStream,
String id,
long runInterval,
int queueSize) |
| Modifier and Type | Method and Description |
|---|---|
List<TupleStream> |
children() |
void |
close() |
boolean |
equals(Object o) |
String |
getId() |
Tuple |
getInfo() |
StreamComparator |
getStreamSort() |
int |
hashCode() |
void |
init(TupleStream tupleStream,
String id,
long runInterval,
int queueSize) |
void |
open() |
Tuple |
read() |
int |
remainingCapacity() |
void |
setStreamContext(StreamContext streamContext) |
void |
shutdown() |
StreamExpression |
toExpression(StreamFactory factory) |
getCost, writeStreamClose, writeStreamOpenpublic DaemonStream(StreamExpression expression, StreamFactory factory) throws IOException
IOExceptionpublic DaemonStream(TupleStream tupleStream, String id, long runInterval, int queueSize)
public StreamExpression toExpression(StreamFactory factory) throws IOException
toExpression in interface ExpressibleIOExceptionpublic int remainingCapacity()
public void init(TupleStream tupleStream, String id, long runInterval, int queueSize)
public String getId()
public void open()
open in class TupleStreampublic Tuple read() throws IOException
read in class TupleStreamIOExceptionpublic StreamComparator getStreamSort()
getStreamSort in class TupleStreampublic void setStreamContext(StreamContext streamContext)
setStreamContext in class TupleStreampublic void shutdown()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class TupleStreampublic List<TupleStream> children()
children in class TupleStreampublic Tuple getInfo()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.