com.github.ltsopensource.jobclient.support
Class JobSubmitProtector
java.lang.Object
com.github.ltsopensource.jobclient.support.JobSubmitProtector
public class JobSubmitProtector
- extends Object
用来处理客户端请求过载问题
- Author:
- Robert HG (254963746@qq.com) on 5/21/15.
JobSubmitProtector
public JobSubmitProtector(JobClientAppContext appContext)
execute
public Response execute(List<com.github.ltsopensource.core.domain.Job> jobs,
JobSubmitExecutor<Response> jobSubmitExecutor)
throws com.github.ltsopensource.core.exception.JobSubmitException
- Throws:
com.github.ltsopensource.core.exception.JobSubmitException
getMaxQPS
public int getMaxQPS()
Copyright © 2017. All rights reserved.