Interface PipelineChannel

    • Method Detail

      • pushRecords

        void pushRecords​(List<Record> dataRecords)
        Push DataRecord into channel.
        Parameters:
        dataRecords - data records
      • fetchRecords

        List<Record> fetchRecords​(int batchSize,
                                  long timeout,
                                  TimeUnit timeUnit)
        Fetch Record list from channel. It might be blocked at most timeout seconds if available records count doesn't reach batch size.
        Parameters:
        batchSize - record batch size
        timeout - timeout
        timeUnit - time unit
        Returns:
        records of transactions
      • peekRecords

        List<Record> peekRecords()
        Peek Record list from channel.
        Returns:
        records of a transaction
      • pollRecords

        List<Record> pollRecords()
        Poll Record list from channel.
        Returns:
        records of a transaction
      • ack

        void ack​(List<Record> records)
        Ack the last batch.
        Parameters:
        records - record list