public abstract class AmqpProducer extends AmqpAbstractResource<JmsProducerInfo,org.apache.qpid.proton.engine.Sender>
| Modifier and Type | Field and Description |
|---|---|
protected AmqpConnection |
connection |
protected boolean |
delayedDeliverySupported |
protected boolean |
presettle |
protected AmqpSession |
session |
closeRequest, closeTimeoutTask| Constructor and Description |
|---|
AmqpProducer(AmqpSession session,
JmsProducerInfo info) |
AmqpProducer(AmqpSession session,
JmsProducerInfo info,
org.apache.qpid.proton.engine.Sender endpoint) |
| Modifier and Type | Method and Description |
|---|---|
JmsProducerId |
getProducerId() |
abstract boolean |
isAnonymous() |
boolean |
isPresettle() |
abstract void |
send(JmsOutboundMessageDispatch envelope,
AsyncResult request)
Sends the given message
|
void |
setDelayedDeliverySupported(boolean delayedDeliverySupported) |
void |
setPresettle(boolean presettle)
Sets whether the producer will presettle all messages that it sends.
|
close, closeOrDetachEndpoint, closeResource, getEndpoint, getLocalState, getParent, getRemoteState, getResourceInfo, handleResourceClosure, isAwaitingClose, isClosed, isOpen, processDeliveryUpdates, processFlowUpdates, processRemoteClose, processRemoteDetach, processRemoteOpenprotected final AmqpSession session
protected final AmqpConnection connection
protected boolean presettle
protected boolean delayedDeliverySupported
public AmqpProducer(AmqpSession session, JmsProducerInfo info)
public AmqpProducer(AmqpSession session, JmsProducerInfo info, org.apache.qpid.proton.engine.Sender endpoint)
public abstract void send(JmsOutboundMessageDispatch envelope, AsyncResult request) throws ProviderException
envelope - The envelope that contains the message and it's targeted destination.request - The AsyncRequest that will be notified on send success or failure.ProviderException - if an error occurs sending the messagepublic abstract boolean isAnonymous()
public JmsProducerId getProducerId()
public boolean isPresettle()
public void setPresettle(boolean presettle)
presettle - true if all messages are sent settled.public void setDelayedDeliverySupported(boolean delayedDeliverySupported)
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.