Class PulsarResourceHolder

java.lang.Object
org.springframework.transaction.support.ResourceHolderSupport
org.springframework.pulsar.transaction.PulsarResourceHolder
All Implemented Interfaces:
ResourceHolder

public class PulsarResourceHolder extends ResourceHolderSupport
Resource holder for a native Pulsar transaction object which is the transactional resource when handling transactions for Spring Pulsar.
Since:
1.1.0
Author:
Chris Bono
  • Constructor Details

    • PulsarResourceHolder

      public PulsarResourceHolder(org.apache.pulsar.client.api.transaction.Transaction transaction)
  • Method Details

    • getTransaction

      public org.apache.pulsar.client.api.transaction.Transaction getTransaction()
    • commit

      public void commit()
    • rollback

      public void rollback()
    • toString

      public String toString()
      Overrides:
      toString in class Object