Package org.apache.qpid.jms.meta
Class JmsProducerInfo
java.lang.Object
org.apache.qpid.jms.meta.JmsAbstractResource
org.apache.qpid.jms.meta.JmsProducerInfo
- All Implemented Interfaces:
Comparable<JmsProducerInfo>,JmsResource
public final class JmsProducerInfo
extends JmsAbstractResource
implements Comparable<JmsProducerInfo>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.qpid.jms.meta.JmsResource
JmsResource.ResourceState -
Constructor Summary
ConstructorsConstructorDescriptionJmsProducerInfo(JmsProducerId producerId) JmsProducerInfo(JmsProducerId producerId, JmsMessageIDBuilder messageIDBuilder) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(JmsProducerInfo other) copy()voidcopy(JmsProducerInfo info) booleangetId()Returns the assigned resource ID for this JmsResource instance.inthashCode()booleanvoidsetDestination(JmsDestination destination) voidsetPresettle(boolean presettle) Sets the presettle mode of the producer, when true the producer will be created as a presettled producer and all messages it sends will be settled before dispatch.toString()voidvisit(JmsResourceVistor vistor) Allows a visitor object to walk the resources and process them.Methods inherited from class org.apache.qpid.jms.meta.JmsAbstractResource
getState, isClosed, setState
-
Constructor Details
-
JmsProducerInfo
-
JmsProducerInfo
-
-
Method Details
-
copy
-
copy
-
getId
Description copied from interface:JmsResourceReturns the assigned resource ID for this JmsResource instance.- Specified by:
getIdin interfaceJmsResource- Returns:
- the assigned resource ID for this JmsResource instance.
-
getParentId
-
getDestination
-
setDestination
-
isPresettle
public boolean isPresettle()- Returns:
- the presettle mode of this producer.
-
setPresettle
public void setPresettle(boolean presettle) Sets the presettle mode of the producer, when true the producer will be created as a presettled producer and all messages it sends will be settled before dispatch.- Parameters:
presettle- the presettle option to set on this producer.
-
getMessageIDBuilder
-
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<JmsProducerInfo>
-
visit
Description copied from interface:JmsResourceAllows a visitor object to walk the resources and process them.- Specified by:
visitin interfaceJmsResource- Parameters:
vistor- The visitor instance that is processing this resource.- Throws:
Exception- if an error occurs while visiting this resource.
-