Interface DecodableStream<T>
- Type Parameters:
T- The element type of this stream
public interface DecodableStream<T>
Represents a data stream on the Decodable platform.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(StreamRecord<T> streamRecord) Adds the given stream record to this stream.Future<List<StreamRecord<T>>> take(int n) Retrievesnelements from this stream.takeOne()Retrieves one element from this stream.
-
Method Details
-
add
Adds the given stream record to this stream. -
takeOne
Future<StreamRecord<T>> takeOne()Retrieves one element from this stream. -
take
Retrievesnelements from this stream.
-