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 TypeMethodDescriptionvoid
add
(StreamRecord<T> streamRecord) Adds the given stream record to this stream.Future
<List<StreamRecord<T>>> take
(int n) Retrievesn
elements 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
Retrievesn
elements from this stream.
-