/** * Users' heartbeat to the Worker. * * @param userId The id of the user * @throws IOException */ public synchronized void userHeartbeat(long userId) throws IOException { mustConnect(); try { mClient.userHeartbeat(userId, mClientMetrics.getHeartbeatData()); } catch (TException e) { mConnected = false; throw new IOException(e); } }
public synchronized void userHeartbeat(long userId) throws TException { CLIENT.userHeartbeat(userId); }