public abstract class ConsumerTarget_0_8 extends AbstractConsumerTarget implements FlowCreditManager.FlowCreditManagerListener
Ties together the protocol session of a subscriber, the consumer tag that was given out by the broker and the channel id.
| Modifier and Type | Class and Description |
|---|---|
static class |
ConsumerTarget_0_8.GetNoAckConsumer
NoAck Subscription for use with BasicGet method.
|
static class |
ConsumerTarget_0_8.NoAckConsumer |
ConsumerTarget.State| Constructor and Description |
|---|
ConsumerTarget_0_8(AMQChannel channel,
org.apache.qpid.framing.AMQShortString consumerTag,
org.apache.qpid.framing.FieldTable arguments,
FlowCreditManager creditManager,
ClientDeliveryMethod deliveryMethod,
RecordDeliveryMethod recordMethod) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquisitionRemoved(MessageInstance node) |
protected void |
addUnacknowledgedMessage(MessageInstance entry) |
protected void |
afterCloseInternal() |
boolean |
allocateCredit(ServerMessage msg) |
void |
confirmAutoClose() |
void |
consumerAdded(ConsumerImpl sub) |
void |
consumerRemoved(ConsumerImpl sub) |
static ConsumerTarget_0_8 |
createAckTarget(AMQChannel channel,
org.apache.qpid.framing.AMQShortString consumerTag,
org.apache.qpid.framing.FieldTable filters,
FlowCreditManager creditManager) |
static ConsumerTarget_0_8 |
createAckTarget(AMQChannel channel,
org.apache.qpid.framing.AMQShortString consumerTag,
org.apache.qpid.framing.FieldTable filters,
FlowCreditManager creditManager,
ClientDeliveryMethod deliveryMethod,
RecordDeliveryMethod recordMethod) |
static ConsumerTarget_0_8 |
createBrowserTarget(AMQChannel channel,
org.apache.qpid.framing.AMQShortString consumerTag,
org.apache.qpid.framing.FieldTable filters,
FlowCreditManager creditManager) |
static ConsumerTarget_0_8 |
createGetNoAckTarget(AMQChannel channel,
org.apache.qpid.framing.AMQShortString consumerTag,
org.apache.qpid.framing.FieldTable filters,
FlowCreditManager creditManager,
ClientDeliveryMethod deliveryMethod,
RecordDeliveryMethod recordMethod) |
static ConsumerTarget_0_8 |
createNoAckTarget(AMQChannel channel,
org.apache.qpid.framing.AMQShortString consumerTag,
org.apache.qpid.framing.FieldTable filters,
FlowCreditManager creditManager) |
static ConsumerTarget_0_8 |
createNoAckTarget(AMQChannel channel,
org.apache.qpid.framing.AMQShortString consumerTag,
org.apache.qpid.framing.FieldTable filters,
FlowCreditManager creditManager,
ClientDeliveryMethod deliveryMethod,
RecordDeliveryMethod recordMethod) |
void |
creditStateChanged(boolean hasCredit) |
protected void |
doCloseInternal() |
void |
flushBatched() |
AMQChannel |
getChannel() |
List<ConsumerImpl> |
getConsumers() |
org.apache.qpid.framing.AMQShortString |
getConsumerTag() |
FlowCreditManager |
getCreditManager() |
AMQSessionModel |
getSessionModel() |
long |
getUnacknowledgedBytes() |
long |
getUnacknowledgedMessages() |
protected boolean |
hasClosed() |
protected boolean |
hasStateChanged() |
boolean |
isAutoClose() |
boolean |
isFlowSuspended() |
protected void |
processClosed() |
protected void |
processStateChanged() |
void |
queueDeleted()
Callback indicating that a queue has been deleted.
|
void |
queueEmpty() |
protected void |
recordMessageDelivery(ConsumerImpl consumer,
MessageInstance entry,
long deliveryTag) |
void |
restoreCredit(ServerMessage message) |
protected long |
sendToClient(ConsumerImpl consumer,
ServerMessage message,
InstanceProperties props,
long deliveryTag) |
String |
toString() |
addStateListener, close, doSend, getSendLock, getState, hasMessagesToSend, hasPendingWork, isSuspended, notifyCurrentState, processPending, releaseSendLock, removeStateChangeListener, send, sendNextMessage, trySendLock, updateStatepublic ConsumerTarget_0_8(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable arguments, FlowCreditManager creditManager, ClientDeliveryMethod deliveryMethod, RecordDeliveryMethod recordMethod)
public static ConsumerTarget_0_8 createBrowserTarget(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable filters, FlowCreditManager creditManager)
public static ConsumerTarget_0_8 createGetNoAckTarget(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable filters, FlowCreditManager creditManager, ClientDeliveryMethod deliveryMethod, RecordDeliveryMethod recordMethod)
public List<ConsumerImpl> getConsumers()
public static ConsumerTarget_0_8 createNoAckTarget(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable filters, FlowCreditManager creditManager)
public static ConsumerTarget_0_8 createNoAckTarget(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable filters, FlowCreditManager creditManager, ClientDeliveryMethod deliveryMethod, RecordDeliveryMethod recordMethod) throws org.apache.qpid.QpidException
org.apache.qpid.QpidExceptionpublic static ConsumerTarget_0_8 createAckTarget(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable filters, FlowCreditManager creditManager)
public static ConsumerTarget_0_8 createAckTarget(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable filters, FlowCreditManager creditManager, ClientDeliveryMethod deliveryMethod, RecordDeliveryMethod recordMethod)
public void consumerRemoved(ConsumerImpl sub)
consumerRemoved in interface ConsumerTargetpublic void consumerAdded(ConsumerImpl sub)
consumerAdded in interface ConsumerTargetpublic AMQSessionModel getSessionModel()
getSessionModel in interface ConsumerTargetpublic boolean isFlowSuspended()
isFlowSuspended in class AbstractConsumerTargetpublic void queueDeleted()
queueDeleted in interface ConsumerTargetpublic boolean isAutoClose()
public FlowCreditManager getCreditManager()
protected void afterCloseInternal()
afterCloseInternal in class AbstractConsumerTargetprotected void doCloseInternal()
doCloseInternal in class AbstractConsumerTargetpublic boolean allocateCredit(ServerMessage msg)
allocateCredit in interface ConsumerTargetpublic AMQChannel getChannel()
public org.apache.qpid.framing.AMQShortString getConsumerTag()
public void restoreCredit(ServerMessage message)
restoreCredit in interface ConsumerTargetpublic void creditStateChanged(boolean hasCredit)
creditStateChanged in interface FlowCreditManager.FlowCreditManagerListenerprotected long sendToClient(ConsumerImpl consumer, ServerMessage message, InstanceProperties props, long deliveryTag)
protected void recordMessageDelivery(ConsumerImpl consumer, MessageInstance entry, long deliveryTag)
public void confirmAutoClose()
public void queueEmpty()
queueEmpty in interface ConsumerTargetprotected void processClosed()
processClosed in class AbstractConsumerTargetprotected void processStateChanged()
processStateChanged in class AbstractConsumerTargetprotected boolean hasStateChanged()
hasStateChanged in class AbstractConsumerTargetprotected boolean hasClosed()
hasClosed in class AbstractConsumerTargetpublic void flushBatched()
flushBatched in interface ConsumerTargetprotected void addUnacknowledgedMessage(MessageInstance entry)
public void acquisitionRemoved(MessageInstance node)
acquisitionRemoved in interface ConsumerTargetpublic long getUnacknowledgedBytes()
getUnacknowledgedBytes in interface ConsumerTargetpublic long getUnacknowledgedMessages()
getUnacknowledgedMessages in interface ConsumerTargetCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.