Class AMQChannel

All Implemented Interfaces:
ShutdownNotifier
Direct Known Subclasses:
ChannelN

public abstract class AMQChannel extends ShutdownNotifierComponent
Base class modelling an AMQ channel. Subclasses implement Channel.close() and processAsync(), and may choose to override processShutdownSignal() and rpc().
See Also:
  • Field Details

    • NO_RPC_TIMEOUT

      protected static final int NO_RPC_TIMEOUT
      See Also:
    • _channelLock

      protected final Lock _channelLock
      Protected; used instead of synchronizing on the channel itself, so that clients can themselves use the channel to synchronize on.
    • _channelLockCondition

      protected final Condition _channelLockCondition
    • _blockContent

      protected volatile boolean _blockContent
      Whether transmission of content-bearing methods should be blocked
    • _rpcTimeout

      protected final int _rpcTimeout
      Timeout for RPC calls
  • Constructor Details

    • AMQChannel

      public AMQChannel(AMQConnection connection, int channelNumber)
      Construct a channel on the given connection, with the given channel number.
      Parameters:
      connection - the underlying connection for this channel
      channelNumber - the allocated reference number for this channel
  • Method Details