public void setId(byte[] id) throws InvalidMessageIdException {
        if (id != null && id.length != MESSAGE_ID_LEN) {
            throw new InvalidMessageIdException("message ID的长度必须为" + MESSAGE_ID_LEN);
        }
        this.id = id;
    }