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:
java.lang.Comparable<JmsProducerInfo>,JmsResource
public final class JmsProducerInfo extends JmsAbstractResource implements java.lang.Comparable<JmsProducerInfo>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.qpid.jms.meta.JmsResource
JmsResource.ResourceState
-
-
Constructor Summary
Constructors Constructor Description JmsProducerInfo(JmsProducerId producerId)JmsProducerInfo(JmsProducerId producerId, JmsMessageIDBuilder messageIDBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(JmsProducerInfo other)JmsProducerInfocopy()voidcopy(JmsProducerInfo info)booleanequals(java.lang.Object obj)JmsDestinationgetDestination()JmsProducerIdgetId()Returns the assigned resource ID for this JmsResource instance.JmsMessageIDBuildergetMessageIDBuilder()JmsSessionIdgetParentId()inthashCode()booleanisPresettle()voidsetDestination(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.java.lang.StringtoString()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 Detail
-
JmsProducerInfo
public JmsProducerInfo(JmsProducerId producerId)
-
JmsProducerInfo
public JmsProducerInfo(JmsProducerId producerId, JmsMessageIDBuilder messageIDBuilder)
-
-
Method Detail
-
copy
public JmsProducerInfo copy()
-
copy
public void copy(JmsProducerInfo info)
-
getId
public JmsProducerId 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
public JmsSessionId getParentId()
-
getDestination
public JmsDestination getDestination()
-
setDestination
public void setDestination(JmsDestination destination)
-
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
public JmsMessageIDBuilder getMessageIDBuilder()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(JmsProducerInfo other)
- Specified by:
compareToin interfacejava.lang.Comparable<JmsProducerInfo>
-
visit
public void visit(JmsResourceVistor vistor) throws java.lang.Exception
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:
java.lang.Exception- if an error occurs while visiting this resource.
-
-