'Put `message` onto `queue`.'

def _put(self, queue, payload, **kwargs):

    filename = (u'%s_%s.%s.msg' % (int(round((monotonic() * 1000))), uuid.uuid4(), queue))
    filename = os.path.join(self.data_folder_out, filename)
    try:
        f = open(filename, u'wb')
        lock(f, LOCK_EX)
        f.write(str_to_bytes(dumps(payload)))
    except (IOError, OSError):
        raise ChannelError(u'Cannot    add    file    {0!r}    to    directory'.format(filename))
    finally:
        unlock(f)
        f.close()
