public class JmsDefaultPresettlePolicy extends Object implements JmsPresettlePolicy
| Constructor and Description |
|---|
JmsDefaultPresettlePolicy() |
JmsDefaultPresettlePolicy(JmsDefaultPresettlePolicy source) |
| Modifier and Type | Method and Description |
|---|---|
JmsDefaultPresettlePolicy |
copy() |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isConsumerPresttled(JmsSession session,
JmsDestination destination)
Determines when a consumer will be created with the settlement mode set to presettled.
|
boolean |
isPresettleAll() |
boolean |
isPresettleConsumers() |
boolean |
isPresettleProducers() |
boolean |
isPresettleQueueConsumers() |
boolean |
isPresettleQueueProducers() |
boolean |
isPresettleTopicConsumers() |
boolean |
isPresettleTopicProducers() |
boolean |
isPresettleTransactedProducers() |
boolean |
isProducerPresttled(JmsSession session,
JmsDestination destination)
Determines when a producer will send message presettled.
|
void |
setPresettleAll(boolean presettleAll)
Sets the presettle all sends option.
|
void |
setPresettleConsumers(boolean presettleConsumers)
The presettle all consumers value to apply.
|
void |
setPresettleProducers(boolean presettleProducers)
Sets the the presettle all sends option.
|
void |
setPresettleQueueConsumers(boolean presettleQueueConsumers)
The presettle Queue consumers value to apply.
|
void |
setPresettleQueueProducers(boolean presettleQueueProducers)
Sets the presettle Queue sends option.
|
void |
setPresettleTopicConsumers(boolean presettleTopicConsumers)
The presettle Topic consumers value to apply.
|
void |
setPresettleTopicProducers(boolean presettleTopicProducers)
Sets the presettle Topic sends option.
|
void |
setPresettleTransactedProducers(boolean presettleTransactedProducers)
Sets the presettle in transactions option.
|
public JmsDefaultPresettlePolicy()
public JmsDefaultPresettlePolicy(JmsDefaultPresettlePolicy source)
public JmsDefaultPresettlePolicy copy()
copy in interface JmsPresettlePolicypublic boolean isConsumerPresttled(JmsSession session, JmsDestination destination)
JmsPresettlePolicyCalled when the a consumer is being created to determine whether the consumer will be configured to request that the remote sends it message that are presettled.
isConsumerPresttled in interface JmsPresettlePolicysession - the session that owns the consumer being created.destination - the destination that the consumer will be listening to.public boolean isProducerPresttled(JmsSession session, JmsDestination destination)
JmsPresettlePolicyCalled when the a producer is being created to determine whether the producer will be configured to send all its message as presettled or not.
For an anonymous producer this method is called on each send to allow the policy to be applied to the target destination that the message will be sent to.
isProducerPresttled in interface JmsPresettlePolicysession - the session that owns the producer.destination - the destination that the producer will be sending to.public boolean isPresettleAll()
public void setPresettleAll(boolean presettleAll)
presettleAll - the presettleAll value to apply.public boolean isPresettleProducers()
public void setPresettleProducers(boolean presettleProducers)
presettleProducers - the presettleProducers value to apply.public boolean isPresettleTopicProducers()
public void setPresettleTopicProducers(boolean presettleTopicProducers)
presettleTopicProducers - the presettleTopicProducers value to apply.public boolean isPresettleQueueProducers()
public void setPresettleQueueProducers(boolean presettleQueueProducers)
presettleQueueProducers - the presettleQueueSends value to apply.public boolean isPresettleTransactedProducers()
public void setPresettleTransactedProducers(boolean presettleTransactedProducers)
presettleTransactedProducers - the presettleTransactedSends to setpublic boolean isPresettleConsumers()
public void setPresettleConsumers(boolean presettleConsumers)
presettleConsumers - the presettleConsumers value to apply to this policy.public boolean isPresettleTopicConsumers()
public void setPresettleTopicConsumers(boolean presettleTopicConsumers)
presettleTopicConsumers - the presettleTopicConsumers value to apply to this policy.public boolean isPresettleQueueConsumers()
public void setPresettleQueueConsumers(boolean presettleQueueConsumers)
presettleQueueConsumers - the presettleQueueConsumers value to apply to this policy.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.