本文整理了Java中com.netflix.conductor.common.metadata.tasks.Task.setRateLimitFrequencyInSeconds()
方法的一些代码示例,展示了Task.setRateLimitFrequencyInSeconds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.setRateLimitFrequencyInSeconds()
方法的具体详情如下:
包路径:com.netflix.conductor.common.metadata.tasks.Task
类名称:Task
方法名:setRateLimitFrequencyInSeconds
暂无
代码示例来源:origin: Netflix/conductor
@Test
public void testExceedsRateLimitWithinLimit() {
Task task =new Task();
task.setRateLimitFrequencyInSeconds(60);
task.setRateLimitPerFrequency(20);
assertFalse(executionDAO.exceedsRateLimitPerFrequency(task));
}
@Test
代码示例来源:origin: Netflix/conductor
httpTask.setWorkflowTask(taskToSchedule);
httpTask.setRateLimitPerFrequency(taskDefinition.getRateLimitPerFrequency());
httpTask.setRateLimitFrequencyInSeconds(taskDefinition.getRateLimitFrequencyInSeconds());
return Collections.singletonList(httpTask);
代码示例来源:origin: Netflix/conductor
userDefinedTask.setWorkflowTask(taskToSchedule);
userDefinedTask.setRateLimitPerFrequency(taskDefinition.getRateLimitPerFrequency());
userDefinedTask.setRateLimitFrequencyInSeconds(taskDefinition.getRateLimitFrequencyInSeconds());
return Collections.singletonList(userDefinedTask);
代码示例来源:origin: Netflix/conductor
@Test
public void testExceedsRateLimitOutOfLimit() {
Task task =new Task();
task.setRateLimitFrequencyInSeconds(60);
task.setRateLimitPerFrequency(1);
assertFalse(executionDAO.exceedsRateLimitPerFrequency(task));
assertTrue(executionDAO.exceedsRateLimitPerFrequency(task));
}
代码示例来源:origin: Netflix/conductor
to.setRateLimitFrequencyInSeconds( from.getRateLimitFrequencyInSeconds() );
to.setExternalInputPayloadStoragePath( from.getExternalInputPayloadStoragePath() );
to.setExternalOutputPayloadStoragePath( from.getExternalOutputPayloadStoragePath() );
代码示例来源:origin: Netflix/conductor
public Task copy() {
Task copy = new Task();
copy.setCallbackAfterSeconds(callbackAfterSeconds);
copy.setCallbackFromWorker(callbackFromWorker);
copy.setCorrelationId(correlationId);
copy.setInputData(inputData);
copy.setOutputData(outputData);
copy.setReferenceTaskName(referenceTaskName);
copy.setStartDelayInSeconds(startDelayInSeconds);
copy.setTaskDefName(taskDefName);
copy.setTaskType(taskType);
copy.setWorkflowInstanceId(workflowInstanceId);
copy.setWorkflowType(workflowType);
copy.setResponseTimeoutSeconds(responseTimeoutSeconds);
copy.setStatus(status);
copy.setRetryCount(retryCount);
copy.setPollCount(pollCount);
copy.setTaskId(taskId);
copy.setWorkflowTask(workflowTask);
copy.setDomain(domain);
copy.setInputMessage(inputMessage);
copy.setOutputMessage(outputMessage);
copy.setRateLimitPerFrequency(rateLimitPerFrequency);
copy.setRateLimitFrequencyInSeconds(rateLimitFrequencyInSeconds);
copy.setExternalInputPayloadStoragePath(externalInputPayloadStoragePath);
copy.setExternalOutputPayloadStoragePath(externalOutputPayloadStoragePath);
return copy;
}
代码示例来源:origin: com.netflix.conductor/conductor-core
userDefinedTask.setWorkflowTask(taskToSchedule);
userDefinedTask.setRateLimitPerFrequency(taskDefinition.getRateLimitPerFrequency());
userDefinedTask.setRateLimitFrequencyInSeconds(taskDefinition.getRateLimitFrequencyInSeconds());
return Collections.singletonList(userDefinedTask);
代码示例来源:origin: com.netflix.conductor/conductor-core
httpTask.setWorkflowTask(taskToSchedule);
httpTask.setRateLimitPerFrequency(taskDefinition.getRateLimitPerFrequency());
httpTask.setRateLimitFrequencyInSeconds(taskDefinition.getRateLimitFrequencyInSeconds());
return Collections.singletonList(httpTask);
代码示例来源:origin: com.netflix.conductor/conductor-grpc
to.setRateLimitFrequencyInSeconds( from.getRateLimitFrequencyInSeconds() );
to.setExternalInputPayloadStoragePath( from.getExternalInputPayloadStoragePath() );
to.setExternalOutputPayloadStoragePath( from.getExternalOutputPayloadStoragePath() );
代码示例来源:origin: com.netflix.conductor/conductor-common
public Task copy() {
Task copy = new Task();
copy.setCallbackAfterSeconds(callbackAfterSeconds);
copy.setCallbackFromWorker(callbackFromWorker);
copy.setCorrelationId(correlationId);
copy.setInputData(inputData);
copy.setOutputData(outputData);
copy.setReferenceTaskName(referenceTaskName);
copy.setStartDelayInSeconds(startDelayInSeconds);
copy.setTaskDefName(taskDefName);
copy.setTaskType(taskType);
copy.setWorkflowInstanceId(workflowInstanceId);
copy.setWorkflowType(workflowType);
copy.setResponseTimeoutSeconds(responseTimeoutSeconds);
copy.setStatus(status);
copy.setRetryCount(retryCount);
copy.setPollCount(pollCount);
copy.setTaskId(taskId);
copy.setWorkflowTask(workflowTask);
copy.setDomain(domain);
copy.setInputMessage(inputMessage);
copy.setOutputMessage(outputMessage);
copy.setRateLimitPerFrequency(rateLimitPerFrequency);
copy.setRateLimitFrequencyInSeconds(rateLimitFrequencyInSeconds);
copy.setExternalInputPayloadStoragePath(externalInputPayloadStoragePath);
copy.setExternalOutputPayloadStoragePath(externalOutputPayloadStoragePath);
return copy;
}
内容来源于网络,如有侵权,请联系作者删除!