public class AMQChannel extends AbstractAMQPSession<AMQChannel,ConsumerTarget_0_8> implements AsyncAutoCommitTransaction.FutureRecorder, ServerChannelMethodProcessor, EventLoggerProvider, CreditRestorer, Deletable<AMQChannel>
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PREFETCH |
_accessControllerContext, _consumersWithPendingWork, _logSubject, _publishAuthCache, _subject, _taskList, _tokenSECURED_STRING_VALUECHANNEL_ID, PRODUCER_AUTH_CACHE_SIZE, PRODUCER_AUTH_CACHE_SIZE_DEFAULT, PRODUCER_AUTH_CACHE_TIMEOUT, PRODUCER_AUTH_CACHE_TIMEOUT_DEFAULT, PRODUCER_FLOW_BLOCKED, TRANSACTION_TIMEOUT_NOTIFICATION_REPEAT_PERIOD, TRANSACTION_TIMEOUT_NOTIFICATION_REPEAT_PERIOD_DEFAULTAWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE| Constructor and Description |
|---|
AMQChannel(AMQPConnection_0_8 connection,
int channelId,
MessageStore messageStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUnacknowledgedMessage(MessageInstance entry,
long deliveryTag,
MessageInstanceConsumer consumer,
boolean usesCredit)
Add a message to the channel-based list of unacknowledged messages
|
void |
block() |
void |
block(Queue<?> queue) |
void |
close() |
void |
close(int cause,
String message) |
void |
dispose() |
AccessControlContext |
getAccessControllerContext() |
NamedAddressSpace |
getAddressSpace() |
boolean |
getBlocking() |
ClientDeliveryMethod |
getClientDeliveryMethod() |
AMQPConnection_0_8<?> |
getConnection() |
Object |
getConnectionReference() |
long |
getNextDeliveryTag() |
Subject |
getSubject() |
long |
getTransactionStartTimeLong() |
long |
getTransactionUpdateTimeLong() |
int |
getUnacknowledgedMessageCount() |
boolean |
ignoreAllButCloseOk() |
boolean |
isChannelFlow() |
boolean |
isClosing() |
void |
receiveAccessRequest(AMQShortString realm,
boolean exclusive,
boolean passive,
boolean active,
boolean write,
boolean read) |
void |
receiveBasicAck(long deliveryTag,
boolean multiple) |
void |
receiveBasicCancel(AMQShortString consumerTag,
boolean nowait) |
void |
receiveBasicConsume(AMQShortString queue,
AMQShortString consumerTag,
boolean noLocal,
boolean noAck,
boolean exclusive,
boolean nowait,
FieldTable arguments) |
void |
receiveBasicGet(AMQShortString queueName,
boolean noAck) |
void |
receiveBasicNack(long deliveryTag,
boolean multiple,
boolean requeue) |
void |
receiveBasicPublish(AMQShortString exchangeName,
AMQShortString routingKey,
boolean mandatory,
boolean immediate) |
void |
receiveBasicQos(long prefetchSize,
int prefetchCount,
boolean global) |
void |
receiveBasicRecover(boolean requeue,
boolean sync) |
void |
receiveBasicReject(long deliveryTag,
boolean requeue) |
void |
receiveChannelClose(int replyCode,
AMQShortString replyText,
int classId,
int methodId) |
void |
receiveChannelCloseOk() |
void |
receiveChannelFlow(boolean active) |
void |
receiveChannelFlowOk(boolean active) |
void |
receiveConfirmSelect(boolean nowait) |
void |
receivedComplete() |
void |
receiveExchangeBound(AMQShortString exchangeName,
AMQShortString routingKey,
AMQShortString queueName) |
void |
receiveExchangeDeclare(AMQShortString exchangeName,
AMQShortString type,
boolean passive,
boolean durable,
boolean autoDelete,
boolean internal,
boolean nowait,
FieldTable arguments) |
void |
receiveExchangeDelete(AMQShortString exchangeStr,
boolean ifUnused,
boolean nowait) |
void |
receiveMessageContent(QpidByteBuffer data) |
void |
receiveMessageHeader(BasicContentHeaderProperties properties,
long bodySize) |
void |
receiveQueueBind(AMQShortString queueName,
AMQShortString exchange,
AMQShortString bindingKey,
boolean nowait,
FieldTable argumentsTable) |
void |
receiveQueueDeclare(AMQShortString queueStr,
boolean passive,
boolean durable,
boolean exclusive,
boolean autoDelete,
boolean nowait,
FieldTable arguments) |
void |
receiveQueueDelete(AMQShortString queueName,
boolean ifUnused,
boolean ifEmpty,
boolean nowait) |
void |
receiveQueuePurge(AMQShortString queueName,
boolean nowait) |
void |
receiveQueueUnbind(AMQShortString queueName,
AMQShortString exchange,
AMQShortString bindingKey,
FieldTable arguments) |
void |
receiveTxCommit() |
void |
receiveTxRollback() |
void |
receiveTxSelect() |
void |
recordFuture(com.google.common.util.concurrent.ListenableFuture<Void> future,
ServerTransaction.Action action) |
void |
restoreCredit(ConsumerTarget target,
int count,
long size) |
String |
toString() |
void |
transportStateChanged() |
void |
unblock() |
void |
unblock(Queue<?> queue) |
protected void |
updateBlockedStateIfNecessary() |
addDeleteTask, addTicker, decConsumerCount, doOnIOThreadAsync, getAMQPConnection, getChannelId, getConsumerCount, getEventLogger, getLogSubject, getUnacknowledgedMessages, incConsumerCount, isProducerFlowBlocked, logOperation, notifyWork, onCreate, processPending, removeDeleteTask, removeTickeraddChangeListener, addChildAsync, addFutureCallback, applyToChildren, asObjectRecord, attainState, attributeSet, authorise, authorise, authorise, authoriseCreateChild, awaitChildClassToAttainState, awaitChildClassToAttainState, beforeClose, changeAttributes, childAdded, childRemoved, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleted, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getAccessControl, getActualAttributes, getAncestor, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getSubjectWithAddedSystemRights, getSystemPrincipal, getSystemTaskControllerContext, getSystemTaskSubject, getSystemTaskSubject, getTaskExecutor, getType, getTypeClass, getUserPreferences, handleExceptionOnOpen, hasEncrypter, isDurable, isSystemProcess, isSystemSubject, managesChildStorage, newToken, notifyStateChanged, onClose, onExceptionInOpen, onOpen, onResolve, onValidate, open, openAsync, postResolve, postResolveChildren, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, updateModel, validateChange, validateChildDelete, validateOnCreateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEventLoggeraddDeleteTask, removeDeleteTaskaddChangeListener, asObjectRecord, authorise, authorise, authorise, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, removeContextVariable, setAttributes, setAttributesAsync, setContextVariable, setUserPreferencesgetContextKeys, getContextValue, getContextValuegetTaskExecutorpublic static final int DEFAULT_PREFETCH
public AMQChannel(AMQPConnection_0_8 connection, int channelId, MessageStore messageStore)
public AccessControlContext getAccessControllerContext()
public void receivedComplete()
public long getNextDeliveryTag()
public void close()
close in interface ConfiguredObject<AMQChannel>close in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>close in class AbstractConfiguredObject<AMQChannel>public void close(int cause,
String message)
public void addUnacknowledgedMessage(MessageInstance entry, long deliveryTag, MessageInstanceConsumer consumer, boolean usesCredit)
entry - the record of the message on the queue that was delivereddeliveryTag - the delivery tag used when delivering the message (see protocol spec for description of the
delivery tag)consumer - The consumer that is to acknowledge this message.usesCredit - public String toString()
toString in class AbstractConfiguredObject<AMQChannel>public boolean isClosing()
isClosing in class AbstractAMQPSession<AMQChannel,ConsumerTarget_0_8>public AMQPConnection_0_8<?> getConnection()
public ClientDeliveryMethod getClientDeliveryMethod()
public Subject getSubject()
public boolean isChannelFlow()
public void block()
block in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public void unblock()
unblock in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public void block(Queue<?> queue)
block in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public void unblock(Queue<?> queue)
unblock in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public void transportStateChanged()
transportStateChanged in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public Object getConnectionReference()
getConnectionReference in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public int getUnacknowledgedMessageCount()
getUnacknowledgedMessageCount in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public boolean getBlocking()
getBlocking in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public NamedAddressSpace getAddressSpace()
public void recordFuture(com.google.common.util.concurrent.ListenableFuture<Void> future, ServerTransaction.Action action)
recordFuture in interface AsyncAutoCommitTransaction.FutureRecorderpublic long getTransactionStartTimeLong()
getTransactionStartTimeLong in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public long getTransactionUpdateTimeLong()
getTransactionUpdateTimeLong in interface AMQPSession<AMQChannel,ConsumerTarget_0_8>public void receiveAccessRequest(AMQShortString realm, boolean exclusive, boolean passive, boolean active, boolean write, boolean read)
receiveAccessRequest in interface ServerChannelMethodProcessorpublic void receiveBasicAck(long deliveryTag,
boolean multiple)
receiveBasicAck in interface ChannelMethodProcessorreceiveBasicAck in interface ServerChannelMethodProcessorpublic void receiveBasicCancel(AMQShortString consumerTag, boolean nowait)
receiveBasicCancel in interface ServerChannelMethodProcessorpublic void receiveBasicConsume(AMQShortString queue, AMQShortString consumerTag, boolean noLocal, boolean noAck, boolean exclusive, boolean nowait, FieldTable arguments)
receiveBasicConsume in interface ServerChannelMethodProcessorpublic void receiveBasicGet(AMQShortString queueName, boolean noAck)
receiveBasicGet in interface ServerChannelMethodProcessorpublic void receiveBasicPublish(AMQShortString exchangeName, AMQShortString routingKey, boolean mandatory, boolean immediate)
receiveBasicPublish in interface ServerChannelMethodProcessorpublic void receiveBasicQos(long prefetchSize,
int prefetchCount,
boolean global)
receiveBasicQos in interface ServerChannelMethodProcessorpublic void receiveBasicRecover(boolean requeue,
boolean sync)
receiveBasicRecover in interface ServerChannelMethodProcessorpublic void receiveBasicReject(long deliveryTag,
boolean requeue)
receiveBasicReject in interface ServerChannelMethodProcessorpublic void receiveChannelClose(int replyCode,
AMQShortString replyText,
int classId,
int methodId)
receiveChannelClose in interface ChannelMethodProcessorpublic void receiveChannelCloseOk()
receiveChannelCloseOk in interface ChannelMethodProcessorpublic void receiveMessageContent(QpidByteBuffer data)
receiveMessageContent in interface ChannelMethodProcessorpublic void receiveMessageHeader(BasicContentHeaderProperties properties, long bodySize)
receiveMessageHeader in interface ChannelMethodProcessorpublic boolean ignoreAllButCloseOk()
ignoreAllButCloseOk in interface ChannelMethodProcessorpublic void receiveBasicNack(long deliveryTag,
boolean multiple,
boolean requeue)
receiveBasicNack in interface ChannelMethodProcessorpublic void receiveChannelFlow(boolean active)
receiveChannelFlow in interface ChannelMethodProcessorpublic void receiveChannelFlowOk(boolean active)
receiveChannelFlowOk in interface ChannelMethodProcessorpublic void receiveExchangeBound(AMQShortString exchangeName, AMQShortString routingKey, AMQShortString queueName)
receiveExchangeBound in interface ServerChannelMethodProcessorpublic void receiveExchangeDeclare(AMQShortString exchangeName, AMQShortString type, boolean passive, boolean durable, boolean autoDelete, boolean internal, boolean nowait, FieldTable arguments)
receiveExchangeDeclare in interface ServerChannelMethodProcessorpublic void receiveExchangeDelete(AMQShortString exchangeStr, boolean ifUnused, boolean nowait)
receiveExchangeDelete in interface ServerChannelMethodProcessorpublic void receiveQueueBind(AMQShortString queueName, AMQShortString exchange, AMQShortString bindingKey, boolean nowait, FieldTable argumentsTable)
receiveQueueBind in interface ServerChannelMethodProcessorpublic void receiveQueueDeclare(AMQShortString queueStr, boolean passive, boolean durable, boolean exclusive, boolean autoDelete, boolean nowait, FieldTable arguments)
receiveQueueDeclare in interface ServerChannelMethodProcessorpublic void receiveQueueDelete(AMQShortString queueName, boolean ifUnused, boolean ifEmpty, boolean nowait)
receiveQueueDelete in interface ServerChannelMethodProcessorpublic void receiveQueuePurge(AMQShortString queueName, boolean nowait)
receiveQueuePurge in interface ServerChannelMethodProcessorpublic void receiveQueueUnbind(AMQShortString queueName, AMQShortString exchange, AMQShortString bindingKey, FieldTable arguments)
receiveQueueUnbind in interface ServerChannelMethodProcessorpublic void receiveTxSelect()
receiveTxSelect in interface ServerChannelMethodProcessorpublic void receiveTxCommit()
receiveTxCommit in interface ServerChannelMethodProcessorpublic void receiveTxRollback()
receiveTxRollback in interface ServerChannelMethodProcessorpublic void receiveConfirmSelect(boolean nowait)
receiveConfirmSelect in interface ServerChannelMethodProcessorprotected void updateBlockedStateIfNecessary()
updateBlockedStateIfNecessary in class AbstractAMQPSession<AMQChannel,ConsumerTarget_0_8>public void restoreCredit(ConsumerTarget target, int count, long size)
restoreCredit in interface CreditRestorerpublic void dispose()
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.