Пример #1
0
  /**
   * 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);
    }
  }
Пример #2
0
 public synchronized void userHeartbeat(long userId) throws TException {
   CLIENT.userHeartbeat(userId);
 }