Adds the given value to the current value and returns the previous 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 previous value.

def get_and_add(self, delta):
        """
        Adds the given value to the current value and returns the previous 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 previous value.
        """

        return self._invoke_internal(pn_counter_add_codec, delta=delta, get_before_update=True)