package query.hessian.accounts;

import gametool.helpers.RecentCCU;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * 2nd version of account service provides more information about accounts.
 *   Concurrent users (CCU) on specified shard.
 * 
 * @author andrey.kuprishov
 */
public interface AccountService2 extends AccountService {

  /**
   * Gets recent ccu on specified shard.
   * Result can be null if gametool has no information about ccu on shard.
   * Result contains shard time of recent ccu collected.
   */
  @Nullable
  RecentCCU getShardCCU(@NotNull String shardName) throws AccountServiceException;
}
