':param int value: max preferred number of channels, between 1 and
`channel.MAX_CHANNELS`, inclusive'

@channel_max.setter
def channel_max(self, value):

    if (not isinstance(value, numbers.Integral)):
        raise TypeError(('channel_max    must    be    an    int,    but    got    %r' % (value,)))
    if ((value < 1) or (value > pika.channel.MAX_CHANNELS)):
        raise ValueError(('channel_max    must    be    <=    %i    and    >    0,    but    got    %r' % (pika.channel.MAX_CHANNELS, value)))
    self._channel_max = value
