Interface TransactionBufferHandler


public interface TransactionBufferHandler
Interface of transaction buffer handler.
  • Method Details

    • endTxnOnTopic

      CompletableFuture<TxnID> endTxnOnTopic(String topic, long txnIdMostBits, long txnIdLeastBits, TxnAction action, long lowWaterMark)
      End transaction on topic.
      Parameters:
      topic - topic name
      txnIdMostBits - txnIdMostBits
      txnIdLeastBits - txnIdLeastBits
      action - transaction action type
      lowWaterMark - low water mark of this transaction
      Returns:
      TxnId
    • endTxnOnSubscription

      CompletableFuture<TxnID> endTxnOnSubscription(String topic, String subscription, long txnIdMostBits, long txnIdLeastBits, TxnAction action, long lowWaterMark)
      End transaction on subscription.
      Parameters:
      topic - topic name
      subscription - subscription name
      txnIdMostBits - txnIdMostBits
      txnIdLeastBits - txnIdLeastBits
      lowWaterMark - low water mark of this transaction
      action - transaction action type
      Returns:
      TxnId
    • handleEndTxnOnTopicResponse

      void handleEndTxnOnTopicResponse(long requestId, CommandEndTxnOnPartitionResponse response)
      Handle response of end transaction on topic.
      Parameters:
      requestId - request ID
      response - response
    • handleEndTxnOnSubscriptionResponse

      void handleEndTxnOnSubscriptionResponse(long requestId, CommandEndTxnOnSubscriptionResponse response)
      Handle response of tend transaction on subscription.
      Parameters:
      requestId - request ID
      response - response
    • close

      void close()
      Release resources.
    • getAvailableRequestCredits

      int getAvailableRequestCredits()
    • getPendingRequestsCount

      int getPendingRequestsCount()