def add_and_get(self, delta):
        """
        Adds the given value to the current value and returns the updated value.

        :raises NoDataMemberInClusterError: if the cluster does not contain any data members.
        :raises UnsupportedOperationError: if the cluster version is less than 3.10.
        :raises ConsistencyLostError: if the session guarantees have been lost.

        :param delta: (int), the value to add.
        :return: (int), the updated value.
        """

        return self._invoke_internal(pn_counter_add_codec, delta=delta, get_before_update=False)
Adds the given value to the current value and returns the updated value.

        :raises NoDataMemberInClusterError: if the cluster does not contain any data members.
        :raises UnsupportedOperationError: if the cluster version is less than 3.10.
        :raises ConsistencyLostError: if the session guarantees have been lost.

        :param delta: (int), the value to add.
        :return: (int), the updated value.