public final class JmsProducerInfo extends Object implements JmsResource, Comparable<JmsProducerInfo>
Constructor and Description |
---|
JmsProducerInfo(JmsProducerId producerId) |
JmsProducerInfo(JmsProducerId producerId,
JmsMessageIDBuilder messageIDBuilder) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JmsProducerInfo other) |
JmsProducerInfo |
copy() |
void |
copy(JmsProducerInfo info) |
boolean |
equals(Object obj) |
JmsDestination |
getDestination() |
JmsProducerId |
getId()
Returns the assigned resource ID for this JmsResource instance.
|
JmsMessageIDBuilder |
getMessageIDBuilder() |
JmsSessionId |
getParentId() |
int |
hashCode() |
boolean |
isPresettle() |
void |
setDestination(JmsDestination destination) |
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.
|
String |
toString() |
void |
visit(JmsResourceVistor vistor)
Allows a visitor object to walk the resources and process them.
|
public JmsProducerInfo(JmsProducerId producerId)
public JmsProducerInfo(JmsProducerId producerId, JmsMessageIDBuilder messageIDBuilder)
public JmsProducerInfo copy()
public void copy(JmsProducerInfo info)
public JmsProducerId getId()
JmsResource
getId
in interface JmsResource
public JmsSessionId getParentId()
public JmsDestination getDestination()
public void setDestination(JmsDestination destination)
public boolean isPresettle()
public void setPresettle(boolean presettle)
presettle
- the presettle option to set on this producer.public JmsMessageIDBuilder getMessageIDBuilder()
public int compareTo(JmsProducerInfo other)
compareTo
in interface Comparable<JmsProducerInfo>
public void visit(JmsResourceVistor vistor) throws Exception
JmsResource
visit
in interface JmsResource
vistor
- The visitor instance that is processing this resource.Exception
- if an error occurs while visiting this resource.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.