com.netflix.conductor.common.metadata.tasks.Task.getRateLimitFrequencyInSeconds()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(70)

本文整理了Java中com.netflix.conductor.common.metadata.tasks.Task.getRateLimitFrequencyInSeconds()方法的一些代码示例,展示了Task.getRateLimitFrequencyInSeconds()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.getRateLimitFrequencyInSeconds()方法的具体详情如下:
包路径:com.netflix.conductor.common.metadata.tasks.Task
类名称:Task
方法名:getRateLimitFrequencyInSeconds

Task.getRateLimitFrequencyInSeconds介绍

暂无

代码示例

代码示例来源:origin: Netflix/conductor

public boolean exceedsRateLimitPerFrequency(Task task) {
  int rateLimitPerFrequency = task.getRateLimitPerFrequency();
  int rateLimitFrequencyInSeconds = task.getRateLimitFrequencyInSeconds();
  if (rateLimitPerFrequency <= 0 || rateLimitFrequencyInSeconds <=0) {
    logger.debug("Rate limit not applied to the Task: {}  either rateLimitPerFrequency: {} or rateLimitFrequencyInSeconds: {} is 0 or less",

代码示例来源:origin: Netflix/conductor

getCallbackAfterSeconds() == task.getCallbackAfterSeconds() &&
getRateLimitPerFrequency() == task.getRateLimitPerFrequency() &&
getRateLimitFrequencyInSeconds() == task.getRateLimitFrequencyInSeconds() &&
Objects.equals(getTaskType(), task.getTaskType()) &&
getStatus() == task.getStatus() &&

代码示例来源:origin: Netflix/conductor

@Override
  public int hashCode() {
    return Objects.hash(getTaskType(), getStatus(), getInputData(), getReferenceTaskName(), getRetryCount(), getSeq(), getCorrelationId(), getPollCount(), getTaskDefName(), getScheduledTime(), getStartTime(), getEndTime(), getUpdateTime(), getStartDelayInSeconds(), getRetriedTaskId(), isRetried(), isExecuted(), isCallbackFromWorker(), getResponseTimeoutSeconds(), getWorkflowInstanceId(), getWorkflowType(), getTaskId(), getReasonForIncompletion(), getCallbackAfterSeconds(), getWorkerId(), getOutputData(), getWorkflowTask(), getDomain(), getInputMessage(), getOutputMessage(), getRateLimitPerFrequency(), getRateLimitFrequencyInSeconds(), getExternalInputPayloadStoragePath(), getExternalOutputPayloadStoragePath());
  }
}

代码示例来源:origin: Netflix/conductor

to.setRateLimitFrequencyInSeconds( from.getRateLimitFrequencyInSeconds() );
if (from.getExternalInputPayloadStoragePath() != null) {
  to.setExternalInputPayloadStoragePath( from.getExternalInputPayloadStoragePath() );

代码示例来源:origin: com.netflix.conductor/conductor-redis-persistence

public boolean exceedsRateLimitPerFrequency(Task task) {
  int rateLimitPerFrequency = task.getRateLimitPerFrequency();
  int rateLimitFrequencyInSeconds = task.getRateLimitFrequencyInSeconds();
  if (rateLimitPerFrequency <= 0 || rateLimitFrequencyInSeconds <=0) {
    logger.debug("Rate limit not applied to the Task: {}  either rateLimitPerFrequency: {} or rateLimitFrequencyInSeconds: {} is 0 or less",

代码示例来源:origin: com.netflix.conductor/conductor-common

getCallbackAfterSeconds() == task.getCallbackAfterSeconds() &&
getRateLimitPerFrequency() == task.getRateLimitPerFrequency() &&
getRateLimitFrequencyInSeconds() == task.getRateLimitFrequencyInSeconds() &&
Objects.equals(getTaskType(), task.getTaskType()) &&
getStatus() == task.getStatus() &&

代码示例来源:origin: com.netflix.conductor/conductor-common

@Override
  public int hashCode() {
    return Objects.hash(getTaskType(), getStatus(), getInputData(), getReferenceTaskName(), getRetryCount(), getSeq(), getCorrelationId(), getPollCount(), getTaskDefName(), getScheduledTime(), getStartTime(), getEndTime(), getUpdateTime(), getStartDelayInSeconds(), getRetriedTaskId(), isRetried(), isExecuted(), isCallbackFromWorker(), getResponseTimeoutSeconds(), getWorkflowInstanceId(), getWorkflowType(), getTaskId(), getReasonForIncompletion(), getCallbackAfterSeconds(), getWorkerId(), getOutputData(), getWorkflowTask(), getDomain(), getInputMessage(), getOutputMessage(), getRateLimitPerFrequency(), getRateLimitFrequencyInSeconds(), getExternalInputPayloadStoragePath(), getExternalOutputPayloadStoragePath());
  }
}

代码示例来源:origin: com.netflix.conductor/conductor-grpc

to.setRateLimitFrequencyInSeconds( from.getRateLimitFrequencyInSeconds() );
if (from.getExternalInputPayloadStoragePath() != null) {
  to.setExternalInputPayloadStoragePath( from.getExternalInputPayloadStoragePath() );

相关文章

Task类方法