public interface Stream
| Modifier and Type | Field and Description |
|---|---|
static int |
QUITTING |
static int |
RUNNING |
static int |
SETUP |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubscriber(StreamSubscriber s) |
void |
close()
Closes the stream by:
send the streamClosed signal to all subscribed clients
|
void |
emitTuple(Tuple t) |
ColumnDefinition |
getColumnDefinition(String colName) |
TupleDefinition |
getDefinition() |
String |
getName() |
long |
getNumEmittedTuples() |
int |
getState() |
int |
getSubscriberCount() |
Collection<StreamSubscriber> |
getSubscribers() |
void |
removeSubscriber(StreamSubscriber s) |
void |
setName(String streamName) |
void |
start()
Start emitting tuples.
|
static final int SETUP
static final int RUNNING
static final int QUITTING
void start()
TupleDefinition getDefinition()
void emitTuple(Tuple t)
String getName()
void setName(String streamName)
void addSubscriber(StreamSubscriber s)
void removeSubscriber(StreamSubscriber s)
ColumnDefinition getColumnDefinition(String colName)
void close()
int getState()
long getNumEmittedTuples()
int getSubscriberCount()
Collection<StreamSubscriber> getSubscribers()
Copyright © 2018 Space Applications Services. All rights reserved.