Interface PipelineChannel
-
- All Superinterfaces:
AutoCloseable,Closeable
public interface PipelineChannel extends Closeable
Pipeline channel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidack(List<Record> records)Ack the last batch.voidclose()Close channel.List<Record>fetchRecords(int batchSize, long timeout, TimeUnit timeUnit)FetchRecordlist from channel.List<Record>peekRecords()PeekRecordlist from channel.List<Record>pollRecords()PollRecordlist from channel.voidpushRecords(List<Record> dataRecords)PushDataRecordinto channel.
-
-
-
Method Detail
-
pushRecords
void pushRecords(List<Record> dataRecords)
PushDataRecordinto channel.- Parameters:
dataRecords- data records
-
fetchRecords
List<Record> fetchRecords(int batchSize, long timeout, TimeUnit timeUnit)
FetchRecordlist from channel. It might be blocked at most timeout seconds if available records count doesn't reach batch size.- Parameters:
batchSize- record batch sizetimeout- timeouttimeUnit- time unit- Returns:
- records of transactions
-
peekRecords
List<Record> peekRecords()
PeekRecordlist from channel.- Returns:
- records of a transaction
-
pollRecords
List<Record> pollRecords()
PollRecordlist from channel.- Returns:
- records of a transaction
-
close
void close()
Close channel.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-