public interface ComputationContext
Modifier and Type | Method and Description |
---|---|
void |
askForCheckpoint()
Ask for checkpoint in order to send records, save input stream offset positions.
|
void |
produceRecord(String streamName,
Record record) |
default void |
produceRecord(String streamName,
String key,
byte[] data)
Emit a record downstream.
|
void |
setSourceLowWatermark(long watermark)
Set the low watermark for a source computation.
|
void |
setTimer(String key,
long time)
Register a timer callback for some point in the future
|
void setTimer(String key, long time)
key
- Name of the timer callback.time
- The (ms since epoch) at which the callback should be fireddefault void produceRecord(String streamName, String key, byte[] data)
askForCheckpoint()
.streamName
- The name of the stream on which the record should be emitted.key
- The key associated with the record. Only relevant when routing method is `GROUP_BY`.data:
- The binary blob to send downstream.void produceRecord(String streamName, Record record)
void setSourceLowWatermark(long watermark)
void askForCheckpoint()
Copyright © 2018 Nuxeo. All rights reserved.