public class GsClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION| 构造器和说明 |
|---|
GsClient(Credential credential,
String region) |
GsClient(Credential credential,
String region,
ClientProfile profile) |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateSessionResponse |
CreateSession(CreateSessionRequest req)
创建会话
|
DescribeWorkersResponse |
DescribeWorkers(DescribeWorkersRequest req)
查询空闲机器数量
|
StopGameResponse |
StopGame(StopGameRequest req)
强制退出游戏
|
TrylockWorkerResponse |
TrylockWorker(TrylockWorkerRequest req)
尝试锁定机器
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegionpublic GsClient(Credential credential, String region)
public GsClient(Credential credential, String region, ClientProfile profile)
public CreateSessionResponse CreateSession(CreateSessionRequest req) throws TencentCloudSDKException
req - CreateSessionRequestTencentCloudSDKExceptionpublic DescribeWorkersResponse DescribeWorkers(DescribeWorkersRequest req) throws TencentCloudSDKException
req - DescribeWorkersRequestTencentCloudSDKExceptionpublic StopGameResponse StopGame(StopGameRequest req) throws TencentCloudSDKException
req - StopGameRequestTencentCloudSDKExceptionpublic TrylockWorkerResponse TrylockWorker(TrylockWorkerRequest req) throws TencentCloudSDKException
req - TrylockWorkerRequestTencentCloudSDKExceptionCopyright © 2020. All rights reserved.