Interface PipelineChannel
public interface PipelineChannel
Pipeline channel.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAck the last batch.voidclose()Close channel.fetchRecords(int batchSize, int timeoutSeconds) FetchRecordlist from channel.voidpushRecord(Record dataRecord) PushDataRecordinto channel.
-
Method Details
-
pushRecord
PushDataRecordinto channel.- Parameters:
dataRecord- data
-
fetchRecords
FetchRecordlist from channel. It might be blocked at most timeout seconds if available records count doesn't reach batch size.- Parameters:
batchSize- record batch sizetimeoutSeconds- timeout(seconds)- Returns:
- record
-
ack
Ack the last batch.- Parameters:
records- record list
-
close
void close()Close channel.
-