com.github.ltsopensource.jobclient.support
Class JobSubmitProtector

java.lang.Object
  extended by com.github.ltsopensource.jobclient.support.JobSubmitProtector

public class JobSubmitProtector
extends Object

用来处理客户端请求过载问题

Author:
Robert HG (254963746@qq.com) on 5/21/15.

Constructor Summary
JobSubmitProtector(JobClientAppContext appContext)
           
 
Method Summary
 Response execute(List<com.github.ltsopensource.core.domain.Job> jobs, JobSubmitExecutor<Response> jobSubmitExecutor)
           
 int getMaxQPS()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobSubmitProtector

public JobSubmitProtector(JobClientAppContext appContext)
Method Detail

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.