def METHOD_NAME(self: StatClient, *args):
    if not self._is_enabled:
        return
    if (not self._is_connected()) and (not self._is_time_for_connect()):
        return
    with self._conn_lock:
        try:
            self._connect_middleware()
            if not self._is_connected():
                return
            payload: bytes = encode_pickable((method.__name__, *args))
            self._stat_mng_client._client_sock.sendall(payload)
        except (InterruptedError, Exception) as exc:
            LOG.error(f'Failed to transfer data', exc_info=exc)
            self._reconnect_middleware()