Record Class JmsPublisherCompletionListener

java.lang.Object
java.lang.Record
org.mule.jms.commons.internal.common.JmsPublisherCompletionListener
All Implemented Interfaces:
jakarta.jms.CompletionListener

public record JmsPublisherCompletionListener(org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback, JmsSession session, JmsMessageProducer producer, String destination, String destinationType, boolean isPartOfCurrentTx, org.mule.runtime.api.scheduler.Scheduler scheduler) extends Record implements jakarta.jms.CompletionListener
CompletionListener for the publish operation
Since:
1.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmsPublisherCompletionListener(org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback, JmsSession session, JmsMessageProducer producer, String destination, String destinationType, boolean isPartOfCurrentTx, org.mule.runtime.api.scheduler.Scheduler scheduler)
    Creates an instance of a JmsPublisherCompletionListener record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void>
    Returns the value of the callback record component.
    Returns the value of the destination record component.
    Returns the value of the destinationType record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the isPartOfCurrentTx record component.
    void
    onCompletion(jakarta.jms.Message message)
     
    void
    onException(jakarta.jms.Message message, Exception exception)
     
    Returns the value of the producer record component.
    org.mule.runtime.api.scheduler.Scheduler
    Returns the value of the scheduler record component.
    Returns the value of the session record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JmsPublisherCompletionListener

      public JmsPublisherCompletionListener(org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback, JmsSession session, JmsMessageProducer producer, String destination, String destinationType, boolean isPartOfCurrentTx, org.mule.runtime.api.scheduler.Scheduler scheduler)
      Creates an instance of a JmsPublisherCompletionListener record class.
      Parameters:
      callback - the value for the callback record component
      session - the value for the session record component
      producer - the value for the producer record component
      destination - the value for the destination record component
      destinationType - the value for the destinationType record component
      isPartOfCurrentTx - the value for the isPartOfCurrentTx record component
      scheduler - the value for the scheduler record component
  • Method Details

    • onCompletion

      public void onCompletion(jakarta.jms.Message message)
      Specified by:
      onCompletion in interface jakarta.jms.CompletionListener
    • onException

      public void onException(jakarta.jms.Message message, Exception exception)
      Specified by:
      onException in interface jakarta.jms.CompletionListener
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • callback

      public org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback()
      Returns the value of the callback record component.
      Returns:
      the value of the callback record component
    • session

      public JmsSession session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component
    • producer

      public JmsMessageProducer producer()
      Returns the value of the producer record component.
      Returns:
      the value of the producer record component
    • destination

      public String destination()
      Returns the value of the destination record component.
      Returns:
      the value of the destination record component
    • destinationType

      public String destinationType()
      Returns the value of the destinationType record component.
      Returns:
      the value of the destinationType record component
    • isPartOfCurrentTx

      public boolean isPartOfCurrentTx()
      Returns the value of the isPartOfCurrentTx record component.
      Returns:
      the value of the isPartOfCurrentTx record component
    • scheduler

      public org.mule.runtime.api.scheduler.Scheduler scheduler()
      Returns the value of the scheduler record component.
      Returns:
      the value of the scheduler record component