001// Automatically generated by the Thrifty compiler; do not edit! 002// Generated on: 2020-11-05T09:22:38.101Z 003// Source: J:\facelog\facelog-service\IFaceLog.thrift at 19:1 004package net.gdface.facelog.client.thrift; 005 006import javax.annotation.Generated; 007 008@Generated( 009 value = "com.microsoft.thrifty.gen.ThriftyCodeGenerator", 010 comments = "https://github.com/microsoft/thrifty" 011) 012public enum MQParam { 013 REDIS_URI(0), 014 015 WEBREDIS_URL(1), 016 017 CMD_CHANNEL(2), 018 019 LOG_MONITOR_CHANNEL(3), 020 021 HB_MONITOR_CHANNEL(4), 022 023 HB_INTERVAL(5), 024 025 HB_EXPIRE(6), 026 027 MQ_TYPE(7), 028 029 MQ_CONNECT(8); 030 031 public final int value; 032 033 MQParam(int value) { 034 this.value = value; 035 } 036 037 public static MQParam findByValue(int value) { 038 switch (value) { 039 case 0: return REDIS_URI; 040 case 1: return WEBREDIS_URL; 041 case 2: return CMD_CHANNEL; 042 case 3: return LOG_MONITOR_CHANNEL; 043 case 4: return HB_MONITOR_CHANNEL; 044 case 5: return HB_INTERVAL; 045 case 6: return HB_EXPIRE; 046 case 7: return MQ_TYPE; 047 case 8: return MQ_CONNECT; 048 default: return null; 049 } 050 } 051}