public class DataReader extends Object
| Constructor and Description |
|---|
DataReader(List<String> inputChannels,
List<io.ray.api.BaseActorHandle> fromActors,
StreamingWorkerConfig workerConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close reader to release resource
|
DataMessage |
read(long timeoutMillis)
Read message from input channels, if timeout, return null.
|
void |
stop()
Stop reader
|
public DataReader(List<String> inputChannels, List<io.ray.api.BaseActorHandle> fromActors, StreamingWorkerConfig workerConfig)
inputChannels - input channels idsfromActors - upstream input actorsworkerConfig - configurationpublic DataMessage read(long timeoutMillis)
timeoutMillis - timeoutpublic void stop()
public void close()
Copyright © 2020. All rights reserved.