'Create a new instance of the Channel
:param pika.connection.Connection connection: The connection
:param int channel_number: The channel number for this instance
:param callable on_open_callback: The callback to call on channel open'

def __init__(self, connection, channel_number, on_open_callback):

    if (not isinstance(channel_number, int)):
        raise exceptions.InvalidChannelNumber
    self.channel_number = channel_number
    self.callbacks = connection.callbacks
    self.connection = connection
    self.flow_active = True
    self._content_assembler = ContentFrameAssembler()
    self._blocked = collections.deque(list())
    self._blocking = None
    self._has_on_flow_callback = False
    self._cancelled = set()
    self._consumers = dict()
    self._consumers_with_noack = set()
    self._on_flowok_callback = None
    self._on_getok_callback = None
    self._on_openok_callback = on_open_callback
    self._state = self.CLOSED
    self._closing_code_and_text = (0, '')
    self._cookie = None
