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
ConstructorsConstructorDescriptionJmsPublisherCompletionListener(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 aJmsPublisherCompletionListenerrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()Returns the value of thecallbackrecord component.Returns the value of thedestinationrecord component.Returns the value of thedestinationTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisPartOfCurrentTxrecord component.voidonCompletion(jakarta.jms.Message message) voidonException(jakarta.jms.Message message, Exception exception) producer()Returns the value of theproducerrecord component.org.mule.runtime.api.scheduler.SchedulerReturns the value of theschedulerrecord component.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aJmsPublisherCompletionListenerrecord class.- Parameters:
callback- the value for thecallbackrecord componentsession- the value for thesessionrecord componentproducer- the value for theproducerrecord componentdestination- the value for thedestinationrecord componentdestinationType- the value for thedestinationTyperecord componentisPartOfCurrentTx- the value for theisPartOfCurrentTxrecord componentscheduler- the value for theschedulerrecord component
-
-
Method Details
-
onCompletion
public void onCompletion(jakarta.jms.Message message) - Specified by:
onCompletionin interfacejakarta.jms.CompletionListener
-
onException
- Specified by:
onExceptionin interfacejakarta.jms.CompletionListener
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
producer
Returns the value of theproducerrecord component.- Returns:
- the value of the
producerrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
destinationType
Returns the value of thedestinationTyperecord component.- Returns:
- the value of the
destinationTyperecord component
-
isPartOfCurrentTx
public boolean isPartOfCurrentTx()Returns the value of theisPartOfCurrentTxrecord component.- Returns:
- the value of the
isPartOfCurrentTxrecord component
-
scheduler
public org.mule.runtime.api.scheduler.Scheduler scheduler()Returns the value of theschedulerrecord component.- Returns:
- the value of the
schedulerrecord component
-