public interface BlockGeneratorListener
| Modifier and Type | Method and Description |
|---|---|
void |
onAddData(Object data,
Object metadata)
Called after a data item is added into the BlockGenerator.
|
void |
onError(String message,
Throwable throwable)
Called when an error has occurred in the BlockGenerator.
|
void |
onGenerateBlock(StreamBlockId blockId)
Called when a new block of data is generated by the block generator.
|
void |
onPushBlock(StreamBlockId blockId,
scala.collection.mutable.ArrayBuffer<?> arrayBuffer)
Called when a new block is ready to be pushed.
|
void onAddData(Object data,
Object metadata)
data - (undocumented)metadata - (undocumented)void onError(String message,
Throwable throwable)
message - (undocumented)throwable - (undocumented)void onGenerateBlock(StreamBlockId blockId)
blockId - (undocumented)void onPushBlock(StreamBlockId blockId, scala.collection.mutable.ArrayBuffer<?> arrayBuffer)
blockId - (undocumented)arrayBuffer - (undocumented)