def get_and_set(self, new_value):
return self._encode_invoke(atomic_long_get_and_set_codec, new_value=new_value)<EOL>
Atomically sets the given value and returns the old value.

:param new_value: (long), the new value.
:return: (long), the old value.