gpt4 book ai didi

com.netflix.zuul.stats.status.ZuulStatusCategory类的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 22:55:31 26 4
gpt4 key购买 nike

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

ZuulStatusCategory介绍

[英]Zuul Status Category As some of the origin servers won't/can't return correct HTTP status codes in responses, we use set an StatusCategory attribute to distinguish the main statuses that we care about from Zuul's perspective. These status categories are split into 2 groups: SUCCESS | FAILURE each of which can have a narrower definition, eg: FAILURE_THROTTLED FAILURE_ORIGIN etc... which should also be subdivided with one of: ORIGIN CLIENT LOCAL
[中]Zuul Status Category由于一些源服务器不会/无法在响应中返回正确的HTTP状态代码,我们使用set-StatusCategory属性从Zuul的角度区分我们关心的主要状态。这些状态类别分为两组:成功|失败,每一组都有一个更窄的定义,例如:失败|限制性失败|起源等。。。其中u还应u细分为一个:来源客户本地

代码示例

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

@Override
public void serviceUnavailable() {
  failAndSetErrorCode(FAILURE_ORIGIN_THROTTLED.name());
}

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

if (ZuulStatusCategory.FAILURE_CLIENT_TIMEOUT.equals(status)) {

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

if (ZuulStatusCategory.FAILURE_CLIENT_TIMEOUT.equals(status)) {

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

@Override
public void nextServerRetriesExceeded() {
  failAndSetErrorCode(FAILURE_ORIGIN_THROTTLED.name());
}

代码示例来源:origin: com.netflix.zuul/zuul-core

if (ZuulStatusCategory.FAILURE_CLIENT_TIMEOUT.equals(status)) {

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

@Override
public void generalError() {
  failAndSetErrorCode(FAILURE_ORIGIN.name());
}

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

@Override
public void nextServerRetriesExceeded() {
  failAndSetErrorCode(FAILURE_ORIGIN_THROTTLED.name());
}

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

@Override
public void serviceUnavailable() {
  failAndSetErrorCode(FAILURE_ORIGIN_THROTTLED.name());
}

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

@Override
public void generalError() {
  failAndSetErrorCode(FAILURE_ORIGIN.name());
}

代码示例来源:origin: com.netflix.zuul/zuul-core

@Override
public void nextServerRetriesExceeded() {
  failAndSetErrorCode(FAILURE_ORIGIN_THROTTLED.name());
}

代码示例来源:origin: com.netflix.zuul/zuul-core

@Override
public void generalError() {
  failAndSetErrorCode(FAILURE_ORIGIN.name());
}

代码示例来源:origin: com.netflix.zuul/zuul-core

@Override
public void serviceUnavailable() {
  failAndSetErrorCode(FAILURE_ORIGIN_THROTTLED.name());
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com