类 RethrottleRequest
java.lang.Object
org.easysearch.client.RethrottleRequest
- 所有已实现的接口:
Validatable
public class RethrottleRequest extends java.lang.Object implements Validatable
A request changing throttling of a task.
-
字段概要
从接口继承的字段 org.easysearch.client.Validatable
EMPTY -
构造器概要
构造器 构造器 说明 RethrottleRequest(org.easysearch.tasks.TaskId taskId)Create a newRethrottleRequestwhich disables any throttling for the given taskId.RethrottleRequest(org.easysearch.tasks.TaskId taskId, float requestsPerSecond)Create a newRethrottleRequestwhich changes the throttling for the given taskId. -
方法概要
修饰符和类型 方法 说明 floatgetRequestsPerSecond()org.easysearch.tasks.TaskIdgetTaskId()java.lang.StringtoString()从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.easysearch.client.Validatable
validate
-
构造器详细资料
-
RethrottleRequest
public RethrottleRequest(org.easysearch.tasks.TaskId taskId)Create a newRethrottleRequestwhich disables any throttling for the given taskId.- 参数:
taskId- the task for which throttling will be disabled
-
RethrottleRequest
public RethrottleRequest(org.easysearch.tasks.TaskId taskId, float requestsPerSecond)Create a newRethrottleRequestwhich changes the throttling for the given taskId.- 参数:
taskId- the task that throttling changes will be applied torequestsPerSecond- the number of requests per second that the task should perform. This needs to be a positive value.
-
-
方法详细资料
-
getTaskId
public org.easysearch.tasks.TaskId getTaskId()- 返回:
- the task Id
-
getRequestsPerSecond
public float getRequestsPerSecond()- 返回:
- the requests per seconds value
-
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Object
-