本文整理了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
暂无
代码示例来源: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() );
内容来源于网络,如有侵权,请联系作者删除!