java.lang.Object | ||
↳ | com.rabbitmq.client.impl.ShutdownNotifierComponent | |
↳ | com.rabbitmq.client.impl.AMQChannel |
Known Direct Subclasses |
Base class modelling an AMQ channel. Subclasses implement
close()
and
processAsync()
, and may choose to override
processShutdownSignal()
and
rpc()
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AMQChannel.BlockingRpcContinuation<T> | |||||||||||
AMQChannel.RpcContinuation | |||||||||||
AMQChannel.SimpleBlockingRpcContinuation |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
_blockContent | Whether transmission of content-bearing methods should be blocked | ||||||||||
_channelMutex | Protected; used instead of synchronizing on the channel itself, so that clients can themselves use the channel to synchronize on. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a channel on the given connection, with the given channel number.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Placeholder until we address bug 15786 (implementing a proper exception hierarchy).
| |||||||||||
Public API - Retrieves this channel's channel number.
| |||||||||||
Private API - handle a command which has been assembled
| |||||||||||
Private API - When the Connection receives a Frame for this
channel, it passes it to this method.
| |||||||||||
Protected API - called by nextCommand to check possibly handle an incoming Command before it is returned to the caller of nextCommand.
| |||||||||||
Protected API - respond, in the driver thread, to a
ShutdownSignalException . | |||||||||||
Protected API - sends a
Method to the broker and waits for the
next in-bound Command from the broker: only for use from
non-connection-MainLoop threads!
| |||||||||||
Placeholder until we address bug 15786 (implementing a proper exception hierarchy).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.rabbitmq.client.impl.ShutdownNotifierComponent
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.rabbitmq.client.ShutdownNotifier
|
Whether transmission of content-bearing methods should be blocked
Protected; used instead of synchronizing on the channel itself, so that clients can themselves use the channel to synchronize on.
Construct a channel on the given connection, with the given channel number.
connection | the underlying connection for this channel |
---|---|
channelNumber | the allocated reference number for this channel |
Placeholder until we address bug 15786 (implementing a proper exception hierarchy).
IOException |
---|
Public API - Retrieves this channel's channel number.
Private API - handle a command which has been assembled
command | the incoming command |
---|
IOException | if there's any problem |
---|---|
IOException |
Private API - When the Connection receives a Frame for this channel, it passes it to this method.
frame | the incoming frame |
---|
IOException | if an error is encountered |
---|
Protected API - called by nextCommand to check possibly handle an incoming Command before it is returned to the caller of nextCommand. If this method returns true, the command is considered handled and is not passed back to nextCommand's caller; if it returns false, nextCommand returns the command as usual. This is used in subclasses to implement handling of Basic.Return and Basic.Deliver messages, as well as Channel.Close and Connection.Close.
command | the command to handle asynchronously |
---|
IOException |
---|
Protected API - respond, in the driver thread, to a ShutdownSignalException
.
signal | the signal to handle |
---|---|
ignoreClosed | the flag indicating whether to ignore the AlreadyClosedException thrown when the channel is already closed |
notifyRpc | the flag indicating whether any remaining rpc continuation should be notified with the given signal |
Protected API - sends a Method
to the broker and waits for the
next in-bound Command from the broker: only for use from
non-connection-MainLoop threads!
Placeholder until we address bug 15786 (implementing a proper exception hierarchy). In the meantime, this at least won't throw away any information from the wrapped exception.
ex | the exception to wrap |
---|