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) |
boolean |
allocateCredit(ServerMessage msg) |
boolean |
close() |
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) |
void |
flushBatched() |
AMQChannel |
getChannel() |
ConsumerImpl |
getConsumer() |
org.apache.qpid.framing.AMQShortString |
getConsumerTag() |
FlowCreditManager |
getCreditManager() |
AMQProtocolSession |
getProtocolSession() |
protected StateChangeListener<MessageInstance,MessageInstance.State> |
getReleasedStateChangeListener() |
AMQSessionModel |
getSessionModel() |
long |
getUnacknowledgedBytes() |
long |
getUnacknowledgedMessages() |
boolean |
isAutoClose() |
boolean |
isSuspended() |
void |
queueDeleted()
Callback indicating that a queue has been deleted.
|
void |
queueEmpty() |
protected void |
recordMessageDelivery(MessageInstance entry,
long deliveryTag) |
void |
restoreCredit(ServerMessage message) |
protected long |
sendToClient(ServerMessage message,
InstanceProperties props,
long deliveryTag) |
String |
toString() |
getState, getStateListener, setStateListener, updateStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsendpublic ConsumerTarget_0_8(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable arguments, FlowCreditManager creditManager, ClientDeliveryMethod deliveryMethod, RecordDeliveryMethod recordMethod) throws org.apache.qpid.AMQException
org.apache.qpid.AMQExceptionpublic static ConsumerTarget_0_8 createBrowserTarget(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable filters, FlowCreditManager creditManager) throws org.apache.qpid.AMQException
org.apache.qpid.AMQExceptionpublic 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) throws org.apache.qpid.AMQException
org.apache.qpid.AMQExceptionpublic static ConsumerTarget_0_8 createNoAckTarget(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable filters, FlowCreditManager creditManager) throws org.apache.qpid.AMQException
org.apache.qpid.AMQExceptionpublic 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.AMQException
org.apache.qpid.AMQExceptionpublic static ConsumerTarget_0_8 createAckTarget(AMQChannel channel, org.apache.qpid.framing.AMQShortString consumerTag, org.apache.qpid.framing.FieldTable filters, FlowCreditManager creditManager) throws org.apache.qpid.AMQException
org.apache.qpid.AMQExceptionpublic 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) throws org.apache.qpid.AMQException
org.apache.qpid.AMQExceptionpublic ConsumerImpl getConsumer()
public void consumerRemoved(ConsumerImpl sub)
consumerRemoved in interface ConsumerTargetpublic void consumerAdded(ConsumerImpl sub)
consumerAdded in interface ConsumerTargetpublic AMQSessionModel getSessionModel()
getSessionModel in interface ConsumerTargetpublic boolean isSuspended()
isSuspended in interface ConsumerTargetpublic void queueDeleted()
queueDeleted in interface ConsumerTargetpublic boolean isAutoClose()
public FlowCreditManager getCreditManager()
public boolean close()
close in interface ConsumerTargetpublic boolean allocateCredit(ServerMessage msg)
allocateCredit in interface ConsumerTargetpublic AMQChannel getChannel()
public org.apache.qpid.framing.AMQShortString getConsumerTag()
public AMQProtocolSession getProtocolSession()
public void restoreCredit(ServerMessage message)
restoreCredit in interface ConsumerTargetprotected final StateChangeListener<MessageInstance,MessageInstance.State> getReleasedStateChangeListener()
public void creditStateChanged(boolean hasCredit)
creditStateChanged in interface FlowCreditManager.FlowCreditManagerListenerprotected long sendToClient(ServerMessage message, InstanceProperties props, long deliveryTag)
protected void recordMessageDelivery(MessageInstance entry, long deliveryTag)
public void confirmAutoClose()
public void queueEmpty()
queueEmpty in interface ConsumerTargetpublic 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–2014 The Apache Software Foundation. All rights reserved.