2 Star 6 Fork 0

tencentcloud/tencentcloud-sdk-cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
TdmqClient.cpp 221.24 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-10-23 04:23 . release 3.0.1101
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <tencentcloud/tdmq/v20200217/TdmqClient.h>
#include <tencentcloud/core/Executor.h>
#include <tencentcloud/core/Runnable.h>
using namespace TencentCloud;
using namespace TencentCloud::Tdmq::V20200217;
using namespace TencentCloud::Tdmq::V20200217::Model;
using namespace std;
namespace
{
const string VERSION = "2020-02-17";
const string ENDPOINT = "tdmq.tencentcloudapi.com";
}
TdmqClient::TdmqClient(const Credential &credential, const string &region) :
TdmqClient(credential, region, ClientProfile())
{
}
TdmqClient::TdmqClient(const Credential &credential, const string &region, const ClientProfile &profile) :
AbstractClient(ENDPOINT, VERSION, credential, region, profile)
{
}
TdmqClient::AcknowledgeMessageOutcome TdmqClient::AcknowledgeMessage(const AcknowledgeMessageRequest &request)
{
auto outcome = MakeRequest(request, "AcknowledgeMessage");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
AcknowledgeMessageResponse rsp = AcknowledgeMessageResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return AcknowledgeMessageOutcome(rsp);
else
return AcknowledgeMessageOutcome(o.GetError());
}
else
{
return AcknowledgeMessageOutcome(outcome.GetError());
}
}
void TdmqClient::AcknowledgeMessageAsync(const AcknowledgeMessageRequest& request, const AcknowledgeMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->AcknowledgeMessage(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::AcknowledgeMessageOutcomeCallable TdmqClient::AcknowledgeMessageCallable(const AcknowledgeMessageRequest &request)
{
auto task = std::make_shared<std::packaged_task<AcknowledgeMessageOutcome()>>(
[this, request]()
{
return this->AcknowledgeMessage(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ClearCmqQueueOutcome TdmqClient::ClearCmqQueue(const ClearCmqQueueRequest &request)
{
auto outcome = MakeRequest(request, "ClearCmqQueue");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ClearCmqQueueResponse rsp = ClearCmqQueueResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ClearCmqQueueOutcome(rsp);
else
return ClearCmqQueueOutcome(o.GetError());
}
else
{
return ClearCmqQueueOutcome(outcome.GetError());
}
}
void TdmqClient::ClearCmqQueueAsync(const ClearCmqQueueRequest& request, const ClearCmqQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ClearCmqQueue(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ClearCmqQueueOutcomeCallable TdmqClient::ClearCmqQueueCallable(const ClearCmqQueueRequest &request)
{
auto task = std::make_shared<std::packaged_task<ClearCmqQueueOutcome()>>(
[this, request]()
{
return this->ClearCmqQueue(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ClearCmqSubscriptionFilterTagsOutcome TdmqClient::ClearCmqSubscriptionFilterTags(const ClearCmqSubscriptionFilterTagsRequest &request)
{
auto outcome = MakeRequest(request, "ClearCmqSubscriptionFilterTags");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ClearCmqSubscriptionFilterTagsResponse rsp = ClearCmqSubscriptionFilterTagsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ClearCmqSubscriptionFilterTagsOutcome(rsp);
else
return ClearCmqSubscriptionFilterTagsOutcome(o.GetError());
}
else
{
return ClearCmqSubscriptionFilterTagsOutcome(outcome.GetError());
}
}
void TdmqClient::ClearCmqSubscriptionFilterTagsAsync(const ClearCmqSubscriptionFilterTagsRequest& request, const ClearCmqSubscriptionFilterTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ClearCmqSubscriptionFilterTags(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ClearCmqSubscriptionFilterTagsOutcomeCallable TdmqClient::ClearCmqSubscriptionFilterTagsCallable(const ClearCmqSubscriptionFilterTagsRequest &request)
{
auto task = std::make_shared<std::packaged_task<ClearCmqSubscriptionFilterTagsOutcome()>>(
[this, request]()
{
return this->ClearCmqSubscriptionFilterTags(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateClusterOutcome TdmqClient::CreateCluster(const CreateClusterRequest &request)
{
auto outcome = MakeRequest(request, "CreateCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateClusterResponse rsp = CreateClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateClusterOutcome(rsp);
else
return CreateClusterOutcome(o.GetError());
}
else
{
return CreateClusterOutcome(outcome.GetError());
}
}
void TdmqClient::CreateClusterAsync(const CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateClusterOutcomeCallable TdmqClient::CreateClusterCallable(const CreateClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateClusterOutcome()>>(
[this, request]()
{
return this->CreateCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateCmqQueueOutcome TdmqClient::CreateCmqQueue(const CreateCmqQueueRequest &request)
{
auto outcome = MakeRequest(request, "CreateCmqQueue");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateCmqQueueResponse rsp = CreateCmqQueueResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateCmqQueueOutcome(rsp);
else
return CreateCmqQueueOutcome(o.GetError());
}
else
{
return CreateCmqQueueOutcome(outcome.GetError());
}
}
void TdmqClient::CreateCmqQueueAsync(const CreateCmqQueueRequest& request, const CreateCmqQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateCmqQueue(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateCmqQueueOutcomeCallable TdmqClient::CreateCmqQueueCallable(const CreateCmqQueueRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateCmqQueueOutcome()>>(
[this, request]()
{
return this->CreateCmqQueue(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateCmqSubscribeOutcome TdmqClient::CreateCmqSubscribe(const CreateCmqSubscribeRequest &request)
{
auto outcome = MakeRequest(request, "CreateCmqSubscribe");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateCmqSubscribeResponse rsp = CreateCmqSubscribeResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateCmqSubscribeOutcome(rsp);
else
return CreateCmqSubscribeOutcome(o.GetError());
}
else
{
return CreateCmqSubscribeOutcome(outcome.GetError());
}
}
void TdmqClient::CreateCmqSubscribeAsync(const CreateCmqSubscribeRequest& request, const CreateCmqSubscribeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateCmqSubscribe(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateCmqSubscribeOutcomeCallable TdmqClient::CreateCmqSubscribeCallable(const CreateCmqSubscribeRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateCmqSubscribeOutcome()>>(
[this, request]()
{
return this->CreateCmqSubscribe(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateCmqTopicOutcome TdmqClient::CreateCmqTopic(const CreateCmqTopicRequest &request)
{
auto outcome = MakeRequest(request, "CreateCmqTopic");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateCmqTopicResponse rsp = CreateCmqTopicResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateCmqTopicOutcome(rsp);
else
return CreateCmqTopicOutcome(o.GetError());
}
else
{
return CreateCmqTopicOutcome(outcome.GetError());
}
}
void TdmqClient::CreateCmqTopicAsync(const CreateCmqTopicRequest& request, const CreateCmqTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateCmqTopic(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateCmqTopicOutcomeCallable TdmqClient::CreateCmqTopicCallable(const CreateCmqTopicRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateCmqTopicOutcome()>>(
[this, request]()
{
return this->CreateCmqTopic(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateEnvironmentOutcome TdmqClient::CreateEnvironment(const CreateEnvironmentRequest &request)
{
auto outcome = MakeRequest(request, "CreateEnvironment");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateEnvironmentResponse rsp = CreateEnvironmentResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateEnvironmentOutcome(rsp);
else
return CreateEnvironmentOutcome(o.GetError());
}
else
{
return CreateEnvironmentOutcome(outcome.GetError());
}
}
void TdmqClient::CreateEnvironmentAsync(const CreateEnvironmentRequest& request, const CreateEnvironmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateEnvironment(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateEnvironmentOutcomeCallable TdmqClient::CreateEnvironmentCallable(const CreateEnvironmentRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateEnvironmentOutcome()>>(
[this, request]()
{
return this->CreateEnvironment(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateEnvironmentRoleOutcome TdmqClient::CreateEnvironmentRole(const CreateEnvironmentRoleRequest &request)
{
auto outcome = MakeRequest(request, "CreateEnvironmentRole");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateEnvironmentRoleResponse rsp = CreateEnvironmentRoleResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateEnvironmentRoleOutcome(rsp);
else
return CreateEnvironmentRoleOutcome(o.GetError());
}
else
{
return CreateEnvironmentRoleOutcome(outcome.GetError());
}
}
void TdmqClient::CreateEnvironmentRoleAsync(const CreateEnvironmentRoleRequest& request, const CreateEnvironmentRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateEnvironmentRole(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateEnvironmentRoleOutcomeCallable TdmqClient::CreateEnvironmentRoleCallable(const CreateEnvironmentRoleRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateEnvironmentRoleOutcome()>>(
[this, request]()
{
return this->CreateEnvironmentRole(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateProClusterOutcome TdmqClient::CreateProCluster(const CreateProClusterRequest &request)
{
auto outcome = MakeRequest(request, "CreateProCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateProClusterResponse rsp = CreateProClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateProClusterOutcome(rsp);
else
return CreateProClusterOutcome(o.GetError());
}
else
{
return CreateProClusterOutcome(outcome.GetError());
}
}
void TdmqClient::CreateProClusterAsync(const CreateProClusterRequest& request, const CreateProClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateProCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateProClusterOutcomeCallable TdmqClient::CreateProClusterCallable(const CreateProClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateProClusterOutcome()>>(
[this, request]()
{
return this->CreateProCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRabbitMQBindingOutcome TdmqClient::CreateRabbitMQBinding(const CreateRabbitMQBindingRequest &request)
{
auto outcome = MakeRequest(request, "CreateRabbitMQBinding");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRabbitMQBindingResponse rsp = CreateRabbitMQBindingResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRabbitMQBindingOutcome(rsp);
else
return CreateRabbitMQBindingOutcome(o.GetError());
}
else
{
return CreateRabbitMQBindingOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRabbitMQBindingAsync(const CreateRabbitMQBindingRequest& request, const CreateRabbitMQBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRabbitMQBinding(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRabbitMQBindingOutcomeCallable TdmqClient::CreateRabbitMQBindingCallable(const CreateRabbitMQBindingRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRabbitMQBindingOutcome()>>(
[this, request]()
{
return this->CreateRabbitMQBinding(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRabbitMQUserOutcome TdmqClient::CreateRabbitMQUser(const CreateRabbitMQUserRequest &request)
{
auto outcome = MakeRequest(request, "CreateRabbitMQUser");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRabbitMQUserResponse rsp = CreateRabbitMQUserResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRabbitMQUserOutcome(rsp);
else
return CreateRabbitMQUserOutcome(o.GetError());
}
else
{
return CreateRabbitMQUserOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRabbitMQUserAsync(const CreateRabbitMQUserRequest& request, const CreateRabbitMQUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRabbitMQUser(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRabbitMQUserOutcomeCallable TdmqClient::CreateRabbitMQUserCallable(const CreateRabbitMQUserRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRabbitMQUserOutcome()>>(
[this, request]()
{
return this->CreateRabbitMQUser(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRabbitMQVipInstanceOutcome TdmqClient::CreateRabbitMQVipInstance(const CreateRabbitMQVipInstanceRequest &request)
{
auto outcome = MakeRequest(request, "CreateRabbitMQVipInstance");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRabbitMQVipInstanceResponse rsp = CreateRabbitMQVipInstanceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRabbitMQVipInstanceOutcome(rsp);
else
return CreateRabbitMQVipInstanceOutcome(o.GetError());
}
else
{
return CreateRabbitMQVipInstanceOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRabbitMQVipInstanceAsync(const CreateRabbitMQVipInstanceRequest& request, const CreateRabbitMQVipInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRabbitMQVipInstance(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRabbitMQVipInstanceOutcomeCallable TdmqClient::CreateRabbitMQVipInstanceCallable(const CreateRabbitMQVipInstanceRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRabbitMQVipInstanceOutcome()>>(
[this, request]()
{
return this->CreateRabbitMQVipInstance(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRabbitMQVirtualHostOutcome TdmqClient::CreateRabbitMQVirtualHost(const CreateRabbitMQVirtualHostRequest &request)
{
auto outcome = MakeRequest(request, "CreateRabbitMQVirtualHost");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRabbitMQVirtualHostResponse rsp = CreateRabbitMQVirtualHostResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRabbitMQVirtualHostOutcome(rsp);
else
return CreateRabbitMQVirtualHostOutcome(o.GetError());
}
else
{
return CreateRabbitMQVirtualHostOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRabbitMQVirtualHostAsync(const CreateRabbitMQVirtualHostRequest& request, const CreateRabbitMQVirtualHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRabbitMQVirtualHost(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRabbitMQVirtualHostOutcomeCallable TdmqClient::CreateRabbitMQVirtualHostCallable(const CreateRabbitMQVirtualHostRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRabbitMQVirtualHostOutcome()>>(
[this, request]()
{
return this->CreateRabbitMQVirtualHost(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRocketMQClusterOutcome TdmqClient::CreateRocketMQCluster(const CreateRocketMQClusterRequest &request)
{
auto outcome = MakeRequest(request, "CreateRocketMQCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRocketMQClusterResponse rsp = CreateRocketMQClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRocketMQClusterOutcome(rsp);
else
return CreateRocketMQClusterOutcome(o.GetError());
}
else
{
return CreateRocketMQClusterOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRocketMQClusterAsync(const CreateRocketMQClusterRequest& request, const CreateRocketMQClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRocketMQCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRocketMQClusterOutcomeCallable TdmqClient::CreateRocketMQClusterCallable(const CreateRocketMQClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRocketMQClusterOutcome()>>(
[this, request]()
{
return this->CreateRocketMQCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRocketMQEnvironmentRoleOutcome TdmqClient::CreateRocketMQEnvironmentRole(const CreateRocketMQEnvironmentRoleRequest &request)
{
auto outcome = MakeRequest(request, "CreateRocketMQEnvironmentRole");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRocketMQEnvironmentRoleResponse rsp = CreateRocketMQEnvironmentRoleResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRocketMQEnvironmentRoleOutcome(rsp);
else
return CreateRocketMQEnvironmentRoleOutcome(o.GetError());
}
else
{
return CreateRocketMQEnvironmentRoleOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRocketMQEnvironmentRoleAsync(const CreateRocketMQEnvironmentRoleRequest& request, const CreateRocketMQEnvironmentRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRocketMQEnvironmentRole(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRocketMQEnvironmentRoleOutcomeCallable TdmqClient::CreateRocketMQEnvironmentRoleCallable(const CreateRocketMQEnvironmentRoleRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRocketMQEnvironmentRoleOutcome()>>(
[this, request]()
{
return this->CreateRocketMQEnvironmentRole(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRocketMQGroupOutcome TdmqClient::CreateRocketMQGroup(const CreateRocketMQGroupRequest &request)
{
auto outcome = MakeRequest(request, "CreateRocketMQGroup");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRocketMQGroupResponse rsp = CreateRocketMQGroupResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRocketMQGroupOutcome(rsp);
else
return CreateRocketMQGroupOutcome(o.GetError());
}
else
{
return CreateRocketMQGroupOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRocketMQGroupAsync(const CreateRocketMQGroupRequest& request, const CreateRocketMQGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRocketMQGroup(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRocketMQGroupOutcomeCallable TdmqClient::CreateRocketMQGroupCallable(const CreateRocketMQGroupRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRocketMQGroupOutcome()>>(
[this, request]()
{
return this->CreateRocketMQGroup(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRocketMQNamespaceOutcome TdmqClient::CreateRocketMQNamespace(const CreateRocketMQNamespaceRequest &request)
{
auto outcome = MakeRequest(request, "CreateRocketMQNamespace");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRocketMQNamespaceResponse rsp = CreateRocketMQNamespaceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRocketMQNamespaceOutcome(rsp);
else
return CreateRocketMQNamespaceOutcome(o.GetError());
}
else
{
return CreateRocketMQNamespaceOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRocketMQNamespaceAsync(const CreateRocketMQNamespaceRequest& request, const CreateRocketMQNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRocketMQNamespace(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRocketMQNamespaceOutcomeCallable TdmqClient::CreateRocketMQNamespaceCallable(const CreateRocketMQNamespaceRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRocketMQNamespaceOutcome()>>(
[this, request]()
{
return this->CreateRocketMQNamespace(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRocketMQRoleOutcome TdmqClient::CreateRocketMQRole(const CreateRocketMQRoleRequest &request)
{
auto outcome = MakeRequest(request, "CreateRocketMQRole");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRocketMQRoleResponse rsp = CreateRocketMQRoleResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRocketMQRoleOutcome(rsp);
else
return CreateRocketMQRoleOutcome(o.GetError());
}
else
{
return CreateRocketMQRoleOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRocketMQRoleAsync(const CreateRocketMQRoleRequest& request, const CreateRocketMQRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRocketMQRole(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRocketMQRoleOutcomeCallable TdmqClient::CreateRocketMQRoleCallable(const CreateRocketMQRoleRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRocketMQRoleOutcome()>>(
[this, request]()
{
return this->CreateRocketMQRole(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRocketMQTopicOutcome TdmqClient::CreateRocketMQTopic(const CreateRocketMQTopicRequest &request)
{
auto outcome = MakeRequest(request, "CreateRocketMQTopic");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRocketMQTopicResponse rsp = CreateRocketMQTopicResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRocketMQTopicOutcome(rsp);
else
return CreateRocketMQTopicOutcome(o.GetError());
}
else
{
return CreateRocketMQTopicOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRocketMQTopicAsync(const CreateRocketMQTopicRequest& request, const CreateRocketMQTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRocketMQTopic(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRocketMQTopicOutcomeCallable TdmqClient::CreateRocketMQTopicCallable(const CreateRocketMQTopicRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRocketMQTopicOutcome()>>(
[this, request]()
{
return this->CreateRocketMQTopic(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRocketMQVipInstanceOutcome TdmqClient::CreateRocketMQVipInstance(const CreateRocketMQVipInstanceRequest &request)
{
auto outcome = MakeRequest(request, "CreateRocketMQVipInstance");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRocketMQVipInstanceResponse rsp = CreateRocketMQVipInstanceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRocketMQVipInstanceOutcome(rsp);
else
return CreateRocketMQVipInstanceOutcome(o.GetError());
}
else
{
return CreateRocketMQVipInstanceOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRocketMQVipInstanceAsync(const CreateRocketMQVipInstanceRequest& request, const CreateRocketMQVipInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRocketMQVipInstance(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRocketMQVipInstanceOutcomeCallable TdmqClient::CreateRocketMQVipInstanceCallable(const CreateRocketMQVipInstanceRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRocketMQVipInstanceOutcome()>>(
[this, request]()
{
return this->CreateRocketMQVipInstance(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateRoleOutcome TdmqClient::CreateRole(const CreateRoleRequest &request)
{
auto outcome = MakeRequest(request, "CreateRole");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateRoleResponse rsp = CreateRoleResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateRoleOutcome(rsp);
else
return CreateRoleOutcome(o.GetError());
}
else
{
return CreateRoleOutcome(outcome.GetError());
}
}
void TdmqClient::CreateRoleAsync(const CreateRoleRequest& request, const CreateRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateRole(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateRoleOutcomeCallable TdmqClient::CreateRoleCallable(const CreateRoleRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateRoleOutcome()>>(
[this, request]()
{
return this->CreateRole(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateSubscriptionOutcome TdmqClient::CreateSubscription(const CreateSubscriptionRequest &request)
{
auto outcome = MakeRequest(request, "CreateSubscription");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateSubscriptionResponse rsp = CreateSubscriptionResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateSubscriptionOutcome(rsp);
else
return CreateSubscriptionOutcome(o.GetError());
}
else
{
return CreateSubscriptionOutcome(outcome.GetError());
}
}
void TdmqClient::CreateSubscriptionAsync(const CreateSubscriptionRequest& request, const CreateSubscriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateSubscription(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateSubscriptionOutcomeCallable TdmqClient::CreateSubscriptionCallable(const CreateSubscriptionRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateSubscriptionOutcome()>>(
[this, request]()
{
return this->CreateSubscription(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::CreateTopicOutcome TdmqClient::CreateTopic(const CreateTopicRequest &request)
{
auto outcome = MakeRequest(request, "CreateTopic");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
CreateTopicResponse rsp = CreateTopicResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return CreateTopicOutcome(rsp);
else
return CreateTopicOutcome(o.GetError());
}
else
{
return CreateTopicOutcome(outcome.GetError());
}
}
void TdmqClient::CreateTopicAsync(const CreateTopicRequest& request, const CreateTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->CreateTopic(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::CreateTopicOutcomeCallable TdmqClient::CreateTopicCallable(const CreateTopicRequest &request)
{
auto task = std::make_shared<std::packaged_task<CreateTopicOutcome()>>(
[this, request]()
{
return this->CreateTopic(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteClusterOutcome TdmqClient::DeleteCluster(const DeleteClusterRequest &request)
{
auto outcome = MakeRequest(request, "DeleteCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteClusterResponse rsp = DeleteClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteClusterOutcome(rsp);
else
return DeleteClusterOutcome(o.GetError());
}
else
{
return DeleteClusterOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteClusterAsync(const DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteClusterOutcomeCallable TdmqClient::DeleteClusterCallable(const DeleteClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteClusterOutcome()>>(
[this, request]()
{
return this->DeleteCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteCmqQueueOutcome TdmqClient::DeleteCmqQueue(const DeleteCmqQueueRequest &request)
{
auto outcome = MakeRequest(request, "DeleteCmqQueue");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteCmqQueueResponse rsp = DeleteCmqQueueResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteCmqQueueOutcome(rsp);
else
return DeleteCmqQueueOutcome(o.GetError());
}
else
{
return DeleteCmqQueueOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteCmqQueueAsync(const DeleteCmqQueueRequest& request, const DeleteCmqQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteCmqQueue(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteCmqQueueOutcomeCallable TdmqClient::DeleteCmqQueueCallable(const DeleteCmqQueueRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteCmqQueueOutcome()>>(
[this, request]()
{
return this->DeleteCmqQueue(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteCmqSubscribeOutcome TdmqClient::DeleteCmqSubscribe(const DeleteCmqSubscribeRequest &request)
{
auto outcome = MakeRequest(request, "DeleteCmqSubscribe");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteCmqSubscribeResponse rsp = DeleteCmqSubscribeResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteCmqSubscribeOutcome(rsp);
else
return DeleteCmqSubscribeOutcome(o.GetError());
}
else
{
return DeleteCmqSubscribeOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteCmqSubscribeAsync(const DeleteCmqSubscribeRequest& request, const DeleteCmqSubscribeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteCmqSubscribe(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteCmqSubscribeOutcomeCallable TdmqClient::DeleteCmqSubscribeCallable(const DeleteCmqSubscribeRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteCmqSubscribeOutcome()>>(
[this, request]()
{
return this->DeleteCmqSubscribe(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteCmqTopicOutcome TdmqClient::DeleteCmqTopic(const DeleteCmqTopicRequest &request)
{
auto outcome = MakeRequest(request, "DeleteCmqTopic");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteCmqTopicResponse rsp = DeleteCmqTopicResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteCmqTopicOutcome(rsp);
else
return DeleteCmqTopicOutcome(o.GetError());
}
else
{
return DeleteCmqTopicOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteCmqTopicAsync(const DeleteCmqTopicRequest& request, const DeleteCmqTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteCmqTopic(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteCmqTopicOutcomeCallable TdmqClient::DeleteCmqTopicCallable(const DeleteCmqTopicRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteCmqTopicOutcome()>>(
[this, request]()
{
return this->DeleteCmqTopic(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteEnvironmentRolesOutcome TdmqClient::DeleteEnvironmentRoles(const DeleteEnvironmentRolesRequest &request)
{
auto outcome = MakeRequest(request, "DeleteEnvironmentRoles");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteEnvironmentRolesResponse rsp = DeleteEnvironmentRolesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteEnvironmentRolesOutcome(rsp);
else
return DeleteEnvironmentRolesOutcome(o.GetError());
}
else
{
return DeleteEnvironmentRolesOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteEnvironmentRolesAsync(const DeleteEnvironmentRolesRequest& request, const DeleteEnvironmentRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteEnvironmentRoles(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteEnvironmentRolesOutcomeCallable TdmqClient::DeleteEnvironmentRolesCallable(const DeleteEnvironmentRolesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteEnvironmentRolesOutcome()>>(
[this, request]()
{
return this->DeleteEnvironmentRoles(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteEnvironmentsOutcome TdmqClient::DeleteEnvironments(const DeleteEnvironmentsRequest &request)
{
auto outcome = MakeRequest(request, "DeleteEnvironments");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteEnvironmentsResponse rsp = DeleteEnvironmentsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteEnvironmentsOutcome(rsp);
else
return DeleteEnvironmentsOutcome(o.GetError());
}
else
{
return DeleteEnvironmentsOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteEnvironmentsAsync(const DeleteEnvironmentsRequest& request, const DeleteEnvironmentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteEnvironments(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteEnvironmentsOutcomeCallable TdmqClient::DeleteEnvironmentsCallable(const DeleteEnvironmentsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteEnvironmentsOutcome()>>(
[this, request]()
{
return this->DeleteEnvironments(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteProClusterOutcome TdmqClient::DeleteProCluster(const DeleteProClusterRequest &request)
{
auto outcome = MakeRequest(request, "DeleteProCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteProClusterResponse rsp = DeleteProClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteProClusterOutcome(rsp);
else
return DeleteProClusterOutcome(o.GetError());
}
else
{
return DeleteProClusterOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteProClusterAsync(const DeleteProClusterRequest& request, const DeleteProClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteProCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteProClusterOutcomeCallable TdmqClient::DeleteProClusterCallable(const DeleteProClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteProClusterOutcome()>>(
[this, request]()
{
return this->DeleteProCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRabbitMQBindingOutcome TdmqClient::DeleteRabbitMQBinding(const DeleteRabbitMQBindingRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRabbitMQBinding");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRabbitMQBindingResponse rsp = DeleteRabbitMQBindingResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRabbitMQBindingOutcome(rsp);
else
return DeleteRabbitMQBindingOutcome(o.GetError());
}
else
{
return DeleteRabbitMQBindingOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRabbitMQBindingAsync(const DeleteRabbitMQBindingRequest& request, const DeleteRabbitMQBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRabbitMQBinding(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRabbitMQBindingOutcomeCallable TdmqClient::DeleteRabbitMQBindingCallable(const DeleteRabbitMQBindingRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRabbitMQBindingOutcome()>>(
[this, request]()
{
return this->DeleteRabbitMQBinding(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRabbitMQUserOutcome TdmqClient::DeleteRabbitMQUser(const DeleteRabbitMQUserRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRabbitMQUser");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRabbitMQUserResponse rsp = DeleteRabbitMQUserResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRabbitMQUserOutcome(rsp);
else
return DeleteRabbitMQUserOutcome(o.GetError());
}
else
{
return DeleteRabbitMQUserOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRabbitMQUserAsync(const DeleteRabbitMQUserRequest& request, const DeleteRabbitMQUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRabbitMQUser(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRabbitMQUserOutcomeCallable TdmqClient::DeleteRabbitMQUserCallable(const DeleteRabbitMQUserRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRabbitMQUserOutcome()>>(
[this, request]()
{
return this->DeleteRabbitMQUser(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRabbitMQVipInstanceOutcome TdmqClient::DeleteRabbitMQVipInstance(const DeleteRabbitMQVipInstanceRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRabbitMQVipInstance");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRabbitMQVipInstanceResponse rsp = DeleteRabbitMQVipInstanceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRabbitMQVipInstanceOutcome(rsp);
else
return DeleteRabbitMQVipInstanceOutcome(o.GetError());
}
else
{
return DeleteRabbitMQVipInstanceOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRabbitMQVipInstanceAsync(const DeleteRabbitMQVipInstanceRequest& request, const DeleteRabbitMQVipInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRabbitMQVipInstance(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRabbitMQVipInstanceOutcomeCallable TdmqClient::DeleteRabbitMQVipInstanceCallable(const DeleteRabbitMQVipInstanceRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRabbitMQVipInstanceOutcome()>>(
[this, request]()
{
return this->DeleteRabbitMQVipInstance(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRabbitMQVirtualHostOutcome TdmqClient::DeleteRabbitMQVirtualHost(const DeleteRabbitMQVirtualHostRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRabbitMQVirtualHost");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRabbitMQVirtualHostResponse rsp = DeleteRabbitMQVirtualHostResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRabbitMQVirtualHostOutcome(rsp);
else
return DeleteRabbitMQVirtualHostOutcome(o.GetError());
}
else
{
return DeleteRabbitMQVirtualHostOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRabbitMQVirtualHostAsync(const DeleteRabbitMQVirtualHostRequest& request, const DeleteRabbitMQVirtualHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRabbitMQVirtualHost(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRabbitMQVirtualHostOutcomeCallable TdmqClient::DeleteRabbitMQVirtualHostCallable(const DeleteRabbitMQVirtualHostRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRabbitMQVirtualHostOutcome()>>(
[this, request]()
{
return this->DeleteRabbitMQVirtualHost(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRocketMQClusterOutcome TdmqClient::DeleteRocketMQCluster(const DeleteRocketMQClusterRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRocketMQCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRocketMQClusterResponse rsp = DeleteRocketMQClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRocketMQClusterOutcome(rsp);
else
return DeleteRocketMQClusterOutcome(o.GetError());
}
else
{
return DeleteRocketMQClusterOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRocketMQClusterAsync(const DeleteRocketMQClusterRequest& request, const DeleteRocketMQClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRocketMQCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRocketMQClusterOutcomeCallable TdmqClient::DeleteRocketMQClusterCallable(const DeleteRocketMQClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRocketMQClusterOutcome()>>(
[this, request]()
{
return this->DeleteRocketMQCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRocketMQEnvironmentRolesOutcome TdmqClient::DeleteRocketMQEnvironmentRoles(const DeleteRocketMQEnvironmentRolesRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRocketMQEnvironmentRoles");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRocketMQEnvironmentRolesResponse rsp = DeleteRocketMQEnvironmentRolesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRocketMQEnvironmentRolesOutcome(rsp);
else
return DeleteRocketMQEnvironmentRolesOutcome(o.GetError());
}
else
{
return DeleteRocketMQEnvironmentRolesOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRocketMQEnvironmentRolesAsync(const DeleteRocketMQEnvironmentRolesRequest& request, const DeleteRocketMQEnvironmentRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRocketMQEnvironmentRoles(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRocketMQEnvironmentRolesOutcomeCallable TdmqClient::DeleteRocketMQEnvironmentRolesCallable(const DeleteRocketMQEnvironmentRolesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRocketMQEnvironmentRolesOutcome()>>(
[this, request]()
{
return this->DeleteRocketMQEnvironmentRoles(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRocketMQGroupOutcome TdmqClient::DeleteRocketMQGroup(const DeleteRocketMQGroupRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRocketMQGroup");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRocketMQGroupResponse rsp = DeleteRocketMQGroupResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRocketMQGroupOutcome(rsp);
else
return DeleteRocketMQGroupOutcome(o.GetError());
}
else
{
return DeleteRocketMQGroupOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRocketMQGroupAsync(const DeleteRocketMQGroupRequest& request, const DeleteRocketMQGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRocketMQGroup(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRocketMQGroupOutcomeCallable TdmqClient::DeleteRocketMQGroupCallable(const DeleteRocketMQGroupRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRocketMQGroupOutcome()>>(
[this, request]()
{
return this->DeleteRocketMQGroup(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRocketMQNamespaceOutcome TdmqClient::DeleteRocketMQNamespace(const DeleteRocketMQNamespaceRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRocketMQNamespace");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRocketMQNamespaceResponse rsp = DeleteRocketMQNamespaceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRocketMQNamespaceOutcome(rsp);
else
return DeleteRocketMQNamespaceOutcome(o.GetError());
}
else
{
return DeleteRocketMQNamespaceOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRocketMQNamespaceAsync(const DeleteRocketMQNamespaceRequest& request, const DeleteRocketMQNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRocketMQNamespace(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRocketMQNamespaceOutcomeCallable TdmqClient::DeleteRocketMQNamespaceCallable(const DeleteRocketMQNamespaceRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRocketMQNamespaceOutcome()>>(
[this, request]()
{
return this->DeleteRocketMQNamespace(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRocketMQRolesOutcome TdmqClient::DeleteRocketMQRoles(const DeleteRocketMQRolesRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRocketMQRoles");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRocketMQRolesResponse rsp = DeleteRocketMQRolesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRocketMQRolesOutcome(rsp);
else
return DeleteRocketMQRolesOutcome(o.GetError());
}
else
{
return DeleteRocketMQRolesOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRocketMQRolesAsync(const DeleteRocketMQRolesRequest& request, const DeleteRocketMQRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRocketMQRoles(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRocketMQRolesOutcomeCallable TdmqClient::DeleteRocketMQRolesCallable(const DeleteRocketMQRolesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRocketMQRolesOutcome()>>(
[this, request]()
{
return this->DeleteRocketMQRoles(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRocketMQTopicOutcome TdmqClient::DeleteRocketMQTopic(const DeleteRocketMQTopicRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRocketMQTopic");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRocketMQTopicResponse rsp = DeleteRocketMQTopicResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRocketMQTopicOutcome(rsp);
else
return DeleteRocketMQTopicOutcome(o.GetError());
}
else
{
return DeleteRocketMQTopicOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRocketMQTopicAsync(const DeleteRocketMQTopicRequest& request, const DeleteRocketMQTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRocketMQTopic(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRocketMQTopicOutcomeCallable TdmqClient::DeleteRocketMQTopicCallable(const DeleteRocketMQTopicRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRocketMQTopicOutcome()>>(
[this, request]()
{
return this->DeleteRocketMQTopic(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRocketMQVipInstanceOutcome TdmqClient::DeleteRocketMQVipInstance(const DeleteRocketMQVipInstanceRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRocketMQVipInstance");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRocketMQVipInstanceResponse rsp = DeleteRocketMQVipInstanceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRocketMQVipInstanceOutcome(rsp);
else
return DeleteRocketMQVipInstanceOutcome(o.GetError());
}
else
{
return DeleteRocketMQVipInstanceOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRocketMQVipInstanceAsync(const DeleteRocketMQVipInstanceRequest& request, const DeleteRocketMQVipInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRocketMQVipInstance(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRocketMQVipInstanceOutcomeCallable TdmqClient::DeleteRocketMQVipInstanceCallable(const DeleteRocketMQVipInstanceRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRocketMQVipInstanceOutcome()>>(
[this, request]()
{
return this->DeleteRocketMQVipInstance(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteRolesOutcome TdmqClient::DeleteRoles(const DeleteRolesRequest &request)
{
auto outcome = MakeRequest(request, "DeleteRoles");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteRolesResponse rsp = DeleteRolesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteRolesOutcome(rsp);
else
return DeleteRolesOutcome(o.GetError());
}
else
{
return DeleteRolesOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteRolesAsync(const DeleteRolesRequest& request, const DeleteRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteRoles(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteRolesOutcomeCallable TdmqClient::DeleteRolesCallable(const DeleteRolesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteRolesOutcome()>>(
[this, request]()
{
return this->DeleteRoles(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteSubscriptionsOutcome TdmqClient::DeleteSubscriptions(const DeleteSubscriptionsRequest &request)
{
auto outcome = MakeRequest(request, "DeleteSubscriptions");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteSubscriptionsResponse rsp = DeleteSubscriptionsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteSubscriptionsOutcome(rsp);
else
return DeleteSubscriptionsOutcome(o.GetError());
}
else
{
return DeleteSubscriptionsOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteSubscriptionsAsync(const DeleteSubscriptionsRequest& request, const DeleteSubscriptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteSubscriptions(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteSubscriptionsOutcomeCallable TdmqClient::DeleteSubscriptionsCallable(const DeleteSubscriptionsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteSubscriptionsOutcome()>>(
[this, request]()
{
return this->DeleteSubscriptions(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DeleteTopicsOutcome TdmqClient::DeleteTopics(const DeleteTopicsRequest &request)
{
auto outcome = MakeRequest(request, "DeleteTopics");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DeleteTopicsResponse rsp = DeleteTopicsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DeleteTopicsOutcome(rsp);
else
return DeleteTopicsOutcome(o.GetError());
}
else
{
return DeleteTopicsOutcome(outcome.GetError());
}
}
void TdmqClient::DeleteTopicsAsync(const DeleteTopicsRequest& request, const DeleteTopicsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DeleteTopics(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DeleteTopicsOutcomeCallable TdmqClient::DeleteTopicsCallable(const DeleteTopicsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DeleteTopicsOutcome()>>(
[this, request]()
{
return this->DeleteTopics(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeAMQPClustersOutcome TdmqClient::DescribeAMQPClusters(const DescribeAMQPClustersRequest &request)
{
auto outcome = MakeRequest(request, "DescribeAMQPClusters");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeAMQPClustersResponse rsp = DescribeAMQPClustersResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeAMQPClustersOutcome(rsp);
else
return DescribeAMQPClustersOutcome(o.GetError());
}
else
{
return DescribeAMQPClustersOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeAMQPClustersAsync(const DescribeAMQPClustersRequest& request, const DescribeAMQPClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeAMQPClusters(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeAMQPClustersOutcomeCallable TdmqClient::DescribeAMQPClustersCallable(const DescribeAMQPClustersRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeAMQPClustersOutcome()>>(
[this, request]()
{
return this->DescribeAMQPClusters(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeAllTenantsOutcome TdmqClient::DescribeAllTenants(const DescribeAllTenantsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeAllTenants");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeAllTenantsResponse rsp = DescribeAllTenantsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeAllTenantsOutcome(rsp);
else
return DescribeAllTenantsOutcome(o.GetError());
}
else
{
return DescribeAllTenantsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeAllTenantsAsync(const DescribeAllTenantsRequest& request, const DescribeAllTenantsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeAllTenants(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeAllTenantsOutcomeCallable TdmqClient::DescribeAllTenantsCallable(const DescribeAllTenantsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeAllTenantsOutcome()>>(
[this, request]()
{
return this->DescribeAllTenants(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeBindClustersOutcome TdmqClient::DescribeBindClusters(const DescribeBindClustersRequest &request)
{
auto outcome = MakeRequest(request, "DescribeBindClusters");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeBindClustersResponse rsp = DescribeBindClustersResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeBindClustersOutcome(rsp);
else
return DescribeBindClustersOutcome(o.GetError());
}
else
{
return DescribeBindClustersOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeBindClustersAsync(const DescribeBindClustersRequest& request, const DescribeBindClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeBindClusters(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeBindClustersOutcomeCallable TdmqClient::DescribeBindClustersCallable(const DescribeBindClustersRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeBindClustersOutcome()>>(
[this, request]()
{
return this->DescribeBindClusters(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeBindVpcsOutcome TdmqClient::DescribeBindVpcs(const DescribeBindVpcsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeBindVpcs");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeBindVpcsResponse rsp = DescribeBindVpcsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeBindVpcsOutcome(rsp);
else
return DescribeBindVpcsOutcome(o.GetError());
}
else
{
return DescribeBindVpcsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeBindVpcsAsync(const DescribeBindVpcsRequest& request, const DescribeBindVpcsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeBindVpcs(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeBindVpcsOutcomeCallable TdmqClient::DescribeBindVpcsCallable(const DescribeBindVpcsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeBindVpcsOutcome()>>(
[this, request]()
{
return this->DescribeBindVpcs(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeClusterDetailOutcome TdmqClient::DescribeClusterDetail(const DescribeClusterDetailRequest &request)
{
auto outcome = MakeRequest(request, "DescribeClusterDetail");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeClusterDetailResponse rsp = DescribeClusterDetailResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeClusterDetailOutcome(rsp);
else
return DescribeClusterDetailOutcome(o.GetError());
}
else
{
return DescribeClusterDetailOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeClusterDetailAsync(const DescribeClusterDetailRequest& request, const DescribeClusterDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeClusterDetail(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeClusterDetailOutcomeCallable TdmqClient::DescribeClusterDetailCallable(const DescribeClusterDetailRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeClusterDetailOutcome()>>(
[this, request]()
{
return this->DescribeClusterDetail(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeClustersOutcome TdmqClient::DescribeClusters(const DescribeClustersRequest &request)
{
auto outcome = MakeRequest(request, "DescribeClusters");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeClustersResponse rsp = DescribeClustersResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeClustersOutcome(rsp);
else
return DescribeClustersOutcome(o.GetError());
}
else
{
return DescribeClustersOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeClustersAsync(const DescribeClustersRequest& request, const DescribeClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeClusters(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeClustersOutcomeCallable TdmqClient::DescribeClustersCallable(const DescribeClustersRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeClustersOutcome()>>(
[this, request]()
{
return this->DescribeClusters(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeCmqDeadLetterSourceQueuesOutcome TdmqClient::DescribeCmqDeadLetterSourceQueues(const DescribeCmqDeadLetterSourceQueuesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeCmqDeadLetterSourceQueues");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeCmqDeadLetterSourceQueuesResponse rsp = DescribeCmqDeadLetterSourceQueuesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeCmqDeadLetterSourceQueuesOutcome(rsp);
else
return DescribeCmqDeadLetterSourceQueuesOutcome(o.GetError());
}
else
{
return DescribeCmqDeadLetterSourceQueuesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeCmqDeadLetterSourceQueuesAsync(const DescribeCmqDeadLetterSourceQueuesRequest& request, const DescribeCmqDeadLetterSourceQueuesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeCmqDeadLetterSourceQueues(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeCmqDeadLetterSourceQueuesOutcomeCallable TdmqClient::DescribeCmqDeadLetterSourceQueuesCallable(const DescribeCmqDeadLetterSourceQueuesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeCmqDeadLetterSourceQueuesOutcome()>>(
[this, request]()
{
return this->DescribeCmqDeadLetterSourceQueues(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeCmqQueueDetailOutcome TdmqClient::DescribeCmqQueueDetail(const DescribeCmqQueueDetailRequest &request)
{
auto outcome = MakeRequest(request, "DescribeCmqQueueDetail");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeCmqQueueDetailResponse rsp = DescribeCmqQueueDetailResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeCmqQueueDetailOutcome(rsp);
else
return DescribeCmqQueueDetailOutcome(o.GetError());
}
else
{
return DescribeCmqQueueDetailOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeCmqQueueDetailAsync(const DescribeCmqQueueDetailRequest& request, const DescribeCmqQueueDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeCmqQueueDetail(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeCmqQueueDetailOutcomeCallable TdmqClient::DescribeCmqQueueDetailCallable(const DescribeCmqQueueDetailRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeCmqQueueDetailOutcome()>>(
[this, request]()
{
return this->DescribeCmqQueueDetail(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeCmqQueuesOutcome TdmqClient::DescribeCmqQueues(const DescribeCmqQueuesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeCmqQueues");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeCmqQueuesResponse rsp = DescribeCmqQueuesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeCmqQueuesOutcome(rsp);
else
return DescribeCmqQueuesOutcome(o.GetError());
}
else
{
return DescribeCmqQueuesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeCmqQueuesAsync(const DescribeCmqQueuesRequest& request, const DescribeCmqQueuesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeCmqQueues(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeCmqQueuesOutcomeCallable TdmqClient::DescribeCmqQueuesCallable(const DescribeCmqQueuesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeCmqQueuesOutcome()>>(
[this, request]()
{
return this->DescribeCmqQueues(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeCmqSubscriptionDetailOutcome TdmqClient::DescribeCmqSubscriptionDetail(const DescribeCmqSubscriptionDetailRequest &request)
{
auto outcome = MakeRequest(request, "DescribeCmqSubscriptionDetail");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeCmqSubscriptionDetailResponse rsp = DescribeCmqSubscriptionDetailResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeCmqSubscriptionDetailOutcome(rsp);
else
return DescribeCmqSubscriptionDetailOutcome(o.GetError());
}
else
{
return DescribeCmqSubscriptionDetailOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeCmqSubscriptionDetailAsync(const DescribeCmqSubscriptionDetailRequest& request, const DescribeCmqSubscriptionDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeCmqSubscriptionDetail(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeCmqSubscriptionDetailOutcomeCallable TdmqClient::DescribeCmqSubscriptionDetailCallable(const DescribeCmqSubscriptionDetailRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeCmqSubscriptionDetailOutcome()>>(
[this, request]()
{
return this->DescribeCmqSubscriptionDetail(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeCmqTopicDetailOutcome TdmqClient::DescribeCmqTopicDetail(const DescribeCmqTopicDetailRequest &request)
{
auto outcome = MakeRequest(request, "DescribeCmqTopicDetail");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeCmqTopicDetailResponse rsp = DescribeCmqTopicDetailResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeCmqTopicDetailOutcome(rsp);
else
return DescribeCmqTopicDetailOutcome(o.GetError());
}
else
{
return DescribeCmqTopicDetailOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeCmqTopicDetailAsync(const DescribeCmqTopicDetailRequest& request, const DescribeCmqTopicDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeCmqTopicDetail(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeCmqTopicDetailOutcomeCallable TdmqClient::DescribeCmqTopicDetailCallable(const DescribeCmqTopicDetailRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeCmqTopicDetailOutcome()>>(
[this, request]()
{
return this->DescribeCmqTopicDetail(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeCmqTopicsOutcome TdmqClient::DescribeCmqTopics(const DescribeCmqTopicsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeCmqTopics");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeCmqTopicsResponse rsp = DescribeCmqTopicsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeCmqTopicsOutcome(rsp);
else
return DescribeCmqTopicsOutcome(o.GetError());
}
else
{
return DescribeCmqTopicsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeCmqTopicsAsync(const DescribeCmqTopicsRequest& request, const DescribeCmqTopicsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeCmqTopics(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeCmqTopicsOutcomeCallable TdmqClient::DescribeCmqTopicsCallable(const DescribeCmqTopicsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeCmqTopicsOutcome()>>(
[this, request]()
{
return this->DescribeCmqTopics(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeEnvironmentAttributesOutcome TdmqClient::DescribeEnvironmentAttributes(const DescribeEnvironmentAttributesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeEnvironmentAttributes");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeEnvironmentAttributesResponse rsp = DescribeEnvironmentAttributesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeEnvironmentAttributesOutcome(rsp);
else
return DescribeEnvironmentAttributesOutcome(o.GetError());
}
else
{
return DescribeEnvironmentAttributesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeEnvironmentAttributesAsync(const DescribeEnvironmentAttributesRequest& request, const DescribeEnvironmentAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeEnvironmentAttributes(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeEnvironmentAttributesOutcomeCallable TdmqClient::DescribeEnvironmentAttributesCallable(const DescribeEnvironmentAttributesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeEnvironmentAttributesOutcome()>>(
[this, request]()
{
return this->DescribeEnvironmentAttributes(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeEnvironmentRolesOutcome TdmqClient::DescribeEnvironmentRoles(const DescribeEnvironmentRolesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeEnvironmentRoles");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeEnvironmentRolesResponse rsp = DescribeEnvironmentRolesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeEnvironmentRolesOutcome(rsp);
else
return DescribeEnvironmentRolesOutcome(o.GetError());
}
else
{
return DescribeEnvironmentRolesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeEnvironmentRolesAsync(const DescribeEnvironmentRolesRequest& request, const DescribeEnvironmentRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeEnvironmentRoles(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeEnvironmentRolesOutcomeCallable TdmqClient::DescribeEnvironmentRolesCallable(const DescribeEnvironmentRolesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeEnvironmentRolesOutcome()>>(
[this, request]()
{
return this->DescribeEnvironmentRoles(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeEnvironmentsOutcome TdmqClient::DescribeEnvironments(const DescribeEnvironmentsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeEnvironments");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeEnvironmentsResponse rsp = DescribeEnvironmentsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeEnvironmentsOutcome(rsp);
else
return DescribeEnvironmentsOutcome(o.GetError());
}
else
{
return DescribeEnvironmentsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeEnvironmentsAsync(const DescribeEnvironmentsRequest& request, const DescribeEnvironmentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeEnvironments(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeEnvironmentsOutcomeCallable TdmqClient::DescribeEnvironmentsCallable(const DescribeEnvironmentsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeEnvironmentsOutcome()>>(
[this, request]()
{
return this->DescribeEnvironments(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeMqMsgTraceOutcome TdmqClient::DescribeMqMsgTrace(const DescribeMqMsgTraceRequest &request)
{
auto outcome = MakeRequest(request, "DescribeMqMsgTrace");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeMqMsgTraceResponse rsp = DescribeMqMsgTraceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeMqMsgTraceOutcome(rsp);
else
return DescribeMqMsgTraceOutcome(o.GetError());
}
else
{
return DescribeMqMsgTraceOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeMqMsgTraceAsync(const DescribeMqMsgTraceRequest& request, const DescribeMqMsgTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeMqMsgTrace(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeMqMsgTraceOutcomeCallable TdmqClient::DescribeMqMsgTraceCallable(const DescribeMqMsgTraceRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeMqMsgTraceOutcome()>>(
[this, request]()
{
return this->DescribeMqMsgTrace(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeMsgOutcome TdmqClient::DescribeMsg(const DescribeMsgRequest &request)
{
auto outcome = MakeRequest(request, "DescribeMsg");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeMsgResponse rsp = DescribeMsgResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeMsgOutcome(rsp);
else
return DescribeMsgOutcome(o.GetError());
}
else
{
return DescribeMsgOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeMsgAsync(const DescribeMsgRequest& request, const DescribeMsgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeMsg(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeMsgOutcomeCallable TdmqClient::DescribeMsgCallable(const DescribeMsgRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeMsgOutcome()>>(
[this, request]()
{
return this->DescribeMsg(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeMsgTraceOutcome TdmqClient::DescribeMsgTrace(const DescribeMsgTraceRequest &request)
{
auto outcome = MakeRequest(request, "DescribeMsgTrace");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeMsgTraceResponse rsp = DescribeMsgTraceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeMsgTraceOutcome(rsp);
else
return DescribeMsgTraceOutcome(o.GetError());
}
else
{
return DescribeMsgTraceOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeMsgTraceAsync(const DescribeMsgTraceRequest& request, const DescribeMsgTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeMsgTrace(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeMsgTraceOutcomeCallable TdmqClient::DescribeMsgTraceCallable(const DescribeMsgTraceRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeMsgTraceOutcome()>>(
[this, request]()
{
return this->DescribeMsgTrace(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeNamespaceBundlesOptOutcome TdmqClient::DescribeNamespaceBundlesOpt(const DescribeNamespaceBundlesOptRequest &request)
{
auto outcome = MakeRequest(request, "DescribeNamespaceBundlesOpt");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeNamespaceBundlesOptResponse rsp = DescribeNamespaceBundlesOptResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeNamespaceBundlesOptOutcome(rsp);
else
return DescribeNamespaceBundlesOptOutcome(o.GetError());
}
else
{
return DescribeNamespaceBundlesOptOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeNamespaceBundlesOptAsync(const DescribeNamespaceBundlesOptRequest& request, const DescribeNamespaceBundlesOptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeNamespaceBundlesOpt(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeNamespaceBundlesOptOutcomeCallable TdmqClient::DescribeNamespaceBundlesOptCallable(const DescribeNamespaceBundlesOptRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeNamespaceBundlesOptOutcome()>>(
[this, request]()
{
return this->DescribeNamespaceBundlesOpt(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeNodeHealthOptOutcome TdmqClient::DescribeNodeHealthOpt(const DescribeNodeHealthOptRequest &request)
{
auto outcome = MakeRequest(request, "DescribeNodeHealthOpt");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeNodeHealthOptResponse rsp = DescribeNodeHealthOptResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeNodeHealthOptOutcome(rsp);
else
return DescribeNodeHealthOptOutcome(o.GetError());
}
else
{
return DescribeNodeHealthOptOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeNodeHealthOptAsync(const DescribeNodeHealthOptRequest& request, const DescribeNodeHealthOptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeNodeHealthOpt(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeNodeHealthOptOutcomeCallable TdmqClient::DescribeNodeHealthOptCallable(const DescribeNodeHealthOptRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeNodeHealthOptOutcome()>>(
[this, request]()
{
return this->DescribeNodeHealthOpt(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribePublisherSummaryOutcome TdmqClient::DescribePublisherSummary(const DescribePublisherSummaryRequest &request)
{
auto outcome = MakeRequest(request, "DescribePublisherSummary");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribePublisherSummaryResponse rsp = DescribePublisherSummaryResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribePublisherSummaryOutcome(rsp);
else
return DescribePublisherSummaryOutcome(o.GetError());
}
else
{
return DescribePublisherSummaryOutcome(outcome.GetError());
}
}
void TdmqClient::DescribePublisherSummaryAsync(const DescribePublisherSummaryRequest& request, const DescribePublisherSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribePublisherSummary(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribePublisherSummaryOutcomeCallable TdmqClient::DescribePublisherSummaryCallable(const DescribePublisherSummaryRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribePublisherSummaryOutcome()>>(
[this, request]()
{
return this->DescribePublisherSummary(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribePublishersOutcome TdmqClient::DescribePublishers(const DescribePublishersRequest &request)
{
auto outcome = MakeRequest(request, "DescribePublishers");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribePublishersResponse rsp = DescribePublishersResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribePublishersOutcome(rsp);
else
return DescribePublishersOutcome(o.GetError());
}
else
{
return DescribePublishersOutcome(outcome.GetError());
}
}
void TdmqClient::DescribePublishersAsync(const DescribePublishersRequest& request, const DescribePublishersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribePublishers(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribePublishersOutcomeCallable TdmqClient::DescribePublishersCallable(const DescribePublishersRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribePublishersOutcome()>>(
[this, request]()
{
return this->DescribePublishers(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribePulsarProInstanceDetailOutcome TdmqClient::DescribePulsarProInstanceDetail(const DescribePulsarProInstanceDetailRequest &request)
{
auto outcome = MakeRequest(request, "DescribePulsarProInstanceDetail");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribePulsarProInstanceDetailResponse rsp = DescribePulsarProInstanceDetailResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribePulsarProInstanceDetailOutcome(rsp);
else
return DescribePulsarProInstanceDetailOutcome(o.GetError());
}
else
{
return DescribePulsarProInstanceDetailOutcome(outcome.GetError());
}
}
void TdmqClient::DescribePulsarProInstanceDetailAsync(const DescribePulsarProInstanceDetailRequest& request, const DescribePulsarProInstanceDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribePulsarProInstanceDetail(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribePulsarProInstanceDetailOutcomeCallable TdmqClient::DescribePulsarProInstanceDetailCallable(const DescribePulsarProInstanceDetailRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribePulsarProInstanceDetailOutcome()>>(
[this, request]()
{
return this->DescribePulsarProInstanceDetail(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribePulsarProInstancesOutcome TdmqClient::DescribePulsarProInstances(const DescribePulsarProInstancesRequest &request)
{
auto outcome = MakeRequest(request, "DescribePulsarProInstances");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribePulsarProInstancesResponse rsp = DescribePulsarProInstancesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribePulsarProInstancesOutcome(rsp);
else
return DescribePulsarProInstancesOutcome(o.GetError());
}
else
{
return DescribePulsarProInstancesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribePulsarProInstancesAsync(const DescribePulsarProInstancesRequest& request, const DescribePulsarProInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribePulsarProInstances(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribePulsarProInstancesOutcomeCallable TdmqClient::DescribePulsarProInstancesCallable(const DescribePulsarProInstancesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribePulsarProInstancesOutcome()>>(
[this, request]()
{
return this->DescribePulsarProInstances(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQBindingsOutcome TdmqClient::DescribeRabbitMQBindings(const DescribeRabbitMQBindingsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQBindings");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQBindingsResponse rsp = DescribeRabbitMQBindingsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQBindingsOutcome(rsp);
else
return DescribeRabbitMQBindingsOutcome(o.GetError());
}
else
{
return DescribeRabbitMQBindingsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQBindingsAsync(const DescribeRabbitMQBindingsRequest& request, const DescribeRabbitMQBindingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQBindings(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQBindingsOutcomeCallable TdmqClient::DescribeRabbitMQBindingsCallable(const DescribeRabbitMQBindingsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQBindingsOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQBindings(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQExchangesOutcome TdmqClient::DescribeRabbitMQExchanges(const DescribeRabbitMQExchangesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQExchanges");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQExchangesResponse rsp = DescribeRabbitMQExchangesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQExchangesOutcome(rsp);
else
return DescribeRabbitMQExchangesOutcome(o.GetError());
}
else
{
return DescribeRabbitMQExchangesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQExchangesAsync(const DescribeRabbitMQExchangesRequest& request, const DescribeRabbitMQExchangesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQExchanges(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQExchangesOutcomeCallable TdmqClient::DescribeRabbitMQExchangesCallable(const DescribeRabbitMQExchangesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQExchangesOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQExchanges(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQNodeListOutcome TdmqClient::DescribeRabbitMQNodeList(const DescribeRabbitMQNodeListRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQNodeList");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQNodeListResponse rsp = DescribeRabbitMQNodeListResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQNodeListOutcome(rsp);
else
return DescribeRabbitMQNodeListOutcome(o.GetError());
}
else
{
return DescribeRabbitMQNodeListOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQNodeListAsync(const DescribeRabbitMQNodeListRequest& request, const DescribeRabbitMQNodeListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQNodeList(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQNodeListOutcomeCallable TdmqClient::DescribeRabbitMQNodeListCallable(const DescribeRabbitMQNodeListRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQNodeListOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQNodeList(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQQueueDetailOutcome TdmqClient::DescribeRabbitMQQueueDetail(const DescribeRabbitMQQueueDetailRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQQueueDetail");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQQueueDetailResponse rsp = DescribeRabbitMQQueueDetailResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQQueueDetailOutcome(rsp);
else
return DescribeRabbitMQQueueDetailOutcome(o.GetError());
}
else
{
return DescribeRabbitMQQueueDetailOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQQueueDetailAsync(const DescribeRabbitMQQueueDetailRequest& request, const DescribeRabbitMQQueueDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQQueueDetail(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQQueueDetailOutcomeCallable TdmqClient::DescribeRabbitMQQueueDetailCallable(const DescribeRabbitMQQueueDetailRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQQueueDetailOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQQueueDetail(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQQueuesOutcome TdmqClient::DescribeRabbitMQQueues(const DescribeRabbitMQQueuesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQQueues");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQQueuesResponse rsp = DescribeRabbitMQQueuesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQQueuesOutcome(rsp);
else
return DescribeRabbitMQQueuesOutcome(o.GetError());
}
else
{
return DescribeRabbitMQQueuesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQQueuesAsync(const DescribeRabbitMQQueuesRequest& request, const DescribeRabbitMQQueuesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQQueues(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQQueuesOutcomeCallable TdmqClient::DescribeRabbitMQQueuesCallable(const DescribeRabbitMQQueuesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQQueuesOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQQueues(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQUserOutcome TdmqClient::DescribeRabbitMQUser(const DescribeRabbitMQUserRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQUser");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQUserResponse rsp = DescribeRabbitMQUserResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQUserOutcome(rsp);
else
return DescribeRabbitMQUserOutcome(o.GetError());
}
else
{
return DescribeRabbitMQUserOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQUserAsync(const DescribeRabbitMQUserRequest& request, const DescribeRabbitMQUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQUser(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQUserOutcomeCallable TdmqClient::DescribeRabbitMQUserCallable(const DescribeRabbitMQUserRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQUserOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQUser(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQVipInstanceOutcome TdmqClient::DescribeRabbitMQVipInstance(const DescribeRabbitMQVipInstanceRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQVipInstance");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQVipInstanceResponse rsp = DescribeRabbitMQVipInstanceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQVipInstanceOutcome(rsp);
else
return DescribeRabbitMQVipInstanceOutcome(o.GetError());
}
else
{
return DescribeRabbitMQVipInstanceOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQVipInstanceAsync(const DescribeRabbitMQVipInstanceRequest& request, const DescribeRabbitMQVipInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQVipInstance(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQVipInstanceOutcomeCallable TdmqClient::DescribeRabbitMQVipInstanceCallable(const DescribeRabbitMQVipInstanceRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQVipInstanceOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQVipInstance(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQVipInstancesOutcome TdmqClient::DescribeRabbitMQVipInstances(const DescribeRabbitMQVipInstancesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQVipInstances");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQVipInstancesResponse rsp = DescribeRabbitMQVipInstancesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQVipInstancesOutcome(rsp);
else
return DescribeRabbitMQVipInstancesOutcome(o.GetError());
}
else
{
return DescribeRabbitMQVipInstancesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQVipInstancesAsync(const DescribeRabbitMQVipInstancesRequest& request, const DescribeRabbitMQVipInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQVipInstances(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQVipInstancesOutcomeCallable TdmqClient::DescribeRabbitMQVipInstancesCallable(const DescribeRabbitMQVipInstancesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQVipInstancesOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQVipInstances(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQVirtualHostOutcome TdmqClient::DescribeRabbitMQVirtualHost(const DescribeRabbitMQVirtualHostRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQVirtualHost");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQVirtualHostResponse rsp = DescribeRabbitMQVirtualHostResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQVirtualHostOutcome(rsp);
else
return DescribeRabbitMQVirtualHostOutcome(o.GetError());
}
else
{
return DescribeRabbitMQVirtualHostOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQVirtualHostAsync(const DescribeRabbitMQVirtualHostRequest& request, const DescribeRabbitMQVirtualHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQVirtualHost(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQVirtualHostOutcomeCallable TdmqClient::DescribeRabbitMQVirtualHostCallable(const DescribeRabbitMQVirtualHostRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQVirtualHostOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQVirtualHost(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRabbitMQVirtualHostListOutcome TdmqClient::DescribeRabbitMQVirtualHostList(const DescribeRabbitMQVirtualHostListRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRabbitMQVirtualHostList");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRabbitMQVirtualHostListResponse rsp = DescribeRabbitMQVirtualHostListResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRabbitMQVirtualHostListOutcome(rsp);
else
return DescribeRabbitMQVirtualHostListOutcome(o.GetError());
}
else
{
return DescribeRabbitMQVirtualHostListOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRabbitMQVirtualHostListAsync(const DescribeRabbitMQVirtualHostListRequest& request, const DescribeRabbitMQVirtualHostListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRabbitMQVirtualHostList(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRabbitMQVirtualHostListOutcomeCallable TdmqClient::DescribeRabbitMQVirtualHostListCallable(const DescribeRabbitMQVirtualHostListRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRabbitMQVirtualHostListOutcome()>>(
[this, request]()
{
return this->DescribeRabbitMQVirtualHostList(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQClusterOutcome TdmqClient::DescribeRocketMQCluster(const DescribeRocketMQClusterRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQClusterResponse rsp = DescribeRocketMQClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQClusterOutcome(rsp);
else
return DescribeRocketMQClusterOutcome(o.GetError());
}
else
{
return DescribeRocketMQClusterOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQClusterAsync(const DescribeRocketMQClusterRequest& request, const DescribeRocketMQClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQClusterOutcomeCallable TdmqClient::DescribeRocketMQClusterCallable(const DescribeRocketMQClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQClusterOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQClustersOutcome TdmqClient::DescribeRocketMQClusters(const DescribeRocketMQClustersRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQClusters");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQClustersResponse rsp = DescribeRocketMQClustersResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQClustersOutcome(rsp);
else
return DescribeRocketMQClustersOutcome(o.GetError());
}
else
{
return DescribeRocketMQClustersOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQClustersAsync(const DescribeRocketMQClustersRequest& request, const DescribeRocketMQClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQClusters(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQClustersOutcomeCallable TdmqClient::DescribeRocketMQClustersCallable(const DescribeRocketMQClustersRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQClustersOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQClusters(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQConsumeStatsOutcome TdmqClient::DescribeRocketMQConsumeStats(const DescribeRocketMQConsumeStatsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQConsumeStats");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQConsumeStatsResponse rsp = DescribeRocketMQConsumeStatsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQConsumeStatsOutcome(rsp);
else
return DescribeRocketMQConsumeStatsOutcome(o.GetError());
}
else
{
return DescribeRocketMQConsumeStatsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQConsumeStatsAsync(const DescribeRocketMQConsumeStatsRequest& request, const DescribeRocketMQConsumeStatsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQConsumeStats(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQConsumeStatsOutcomeCallable TdmqClient::DescribeRocketMQConsumeStatsCallable(const DescribeRocketMQConsumeStatsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQConsumeStatsOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQConsumeStats(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQConsumerConnectionDetailOutcome TdmqClient::DescribeRocketMQConsumerConnectionDetail(const DescribeRocketMQConsumerConnectionDetailRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQConsumerConnectionDetail");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQConsumerConnectionDetailResponse rsp = DescribeRocketMQConsumerConnectionDetailResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQConsumerConnectionDetailOutcome(rsp);
else
return DescribeRocketMQConsumerConnectionDetailOutcome(o.GetError());
}
else
{
return DescribeRocketMQConsumerConnectionDetailOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQConsumerConnectionDetailAsync(const DescribeRocketMQConsumerConnectionDetailRequest& request, const DescribeRocketMQConsumerConnectionDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQConsumerConnectionDetail(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQConsumerConnectionDetailOutcomeCallable TdmqClient::DescribeRocketMQConsumerConnectionDetailCallable(const DescribeRocketMQConsumerConnectionDetailRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQConsumerConnectionDetailOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQConsumerConnectionDetail(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQConsumerConnectionsOutcome TdmqClient::DescribeRocketMQConsumerConnections(const DescribeRocketMQConsumerConnectionsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQConsumerConnections");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQConsumerConnectionsResponse rsp = DescribeRocketMQConsumerConnectionsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQConsumerConnectionsOutcome(rsp);
else
return DescribeRocketMQConsumerConnectionsOutcome(o.GetError());
}
else
{
return DescribeRocketMQConsumerConnectionsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQConsumerConnectionsAsync(const DescribeRocketMQConsumerConnectionsRequest& request, const DescribeRocketMQConsumerConnectionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQConsumerConnections(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQConsumerConnectionsOutcomeCallable TdmqClient::DescribeRocketMQConsumerConnectionsCallable(const DescribeRocketMQConsumerConnectionsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQConsumerConnectionsOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQConsumerConnections(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQEnvironmentRolesOutcome TdmqClient::DescribeRocketMQEnvironmentRoles(const DescribeRocketMQEnvironmentRolesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQEnvironmentRoles");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQEnvironmentRolesResponse rsp = DescribeRocketMQEnvironmentRolesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQEnvironmentRolesOutcome(rsp);
else
return DescribeRocketMQEnvironmentRolesOutcome(o.GetError());
}
else
{
return DescribeRocketMQEnvironmentRolesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQEnvironmentRolesAsync(const DescribeRocketMQEnvironmentRolesRequest& request, const DescribeRocketMQEnvironmentRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQEnvironmentRoles(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQEnvironmentRolesOutcomeCallable TdmqClient::DescribeRocketMQEnvironmentRolesCallable(const DescribeRocketMQEnvironmentRolesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQEnvironmentRolesOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQEnvironmentRoles(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQGroupsOutcome TdmqClient::DescribeRocketMQGroups(const DescribeRocketMQGroupsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQGroups");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQGroupsResponse rsp = DescribeRocketMQGroupsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQGroupsOutcome(rsp);
else
return DescribeRocketMQGroupsOutcome(o.GetError());
}
else
{
return DescribeRocketMQGroupsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQGroupsAsync(const DescribeRocketMQGroupsRequest& request, const DescribeRocketMQGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQGroups(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQGroupsOutcomeCallable TdmqClient::DescribeRocketMQGroupsCallable(const DescribeRocketMQGroupsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQGroupsOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQGroups(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQMigratingTopicListOutcome TdmqClient::DescribeRocketMQMigratingTopicList(const DescribeRocketMQMigratingTopicListRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQMigratingTopicList");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQMigratingTopicListResponse rsp = DescribeRocketMQMigratingTopicListResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQMigratingTopicListOutcome(rsp);
else
return DescribeRocketMQMigratingTopicListOutcome(o.GetError());
}
else
{
return DescribeRocketMQMigratingTopicListOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQMigratingTopicListAsync(const DescribeRocketMQMigratingTopicListRequest& request, const DescribeRocketMQMigratingTopicListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQMigratingTopicList(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQMigratingTopicListOutcomeCallable TdmqClient::DescribeRocketMQMigratingTopicListCallable(const DescribeRocketMQMigratingTopicListRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQMigratingTopicListOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQMigratingTopicList(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQMsgOutcome TdmqClient::DescribeRocketMQMsg(const DescribeRocketMQMsgRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQMsg");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQMsgResponse rsp = DescribeRocketMQMsgResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQMsgOutcome(rsp);
else
return DescribeRocketMQMsgOutcome(o.GetError());
}
else
{
return DescribeRocketMQMsgOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQMsgAsync(const DescribeRocketMQMsgRequest& request, const DescribeRocketMQMsgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQMsg(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQMsgOutcomeCallable TdmqClient::DescribeRocketMQMsgCallable(const DescribeRocketMQMsgRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQMsgOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQMsg(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQMsgTraceOutcome TdmqClient::DescribeRocketMQMsgTrace(const DescribeRocketMQMsgTraceRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQMsgTrace");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQMsgTraceResponse rsp = DescribeRocketMQMsgTraceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQMsgTraceOutcome(rsp);
else
return DescribeRocketMQMsgTraceOutcome(o.GetError());
}
else
{
return DescribeRocketMQMsgTraceOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQMsgTraceAsync(const DescribeRocketMQMsgTraceRequest& request, const DescribeRocketMQMsgTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQMsgTrace(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQMsgTraceOutcomeCallable TdmqClient::DescribeRocketMQMsgTraceCallable(const DescribeRocketMQMsgTraceRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQMsgTraceOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQMsgTrace(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQNamespacesOutcome TdmqClient::DescribeRocketMQNamespaces(const DescribeRocketMQNamespacesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQNamespaces");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQNamespacesResponse rsp = DescribeRocketMQNamespacesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQNamespacesOutcome(rsp);
else
return DescribeRocketMQNamespacesOutcome(o.GetError());
}
else
{
return DescribeRocketMQNamespacesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQNamespacesAsync(const DescribeRocketMQNamespacesRequest& request, const DescribeRocketMQNamespacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQNamespaces(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQNamespacesOutcomeCallable TdmqClient::DescribeRocketMQNamespacesCallable(const DescribeRocketMQNamespacesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQNamespacesOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQNamespaces(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQPublicAccessMonitorDataOutcome TdmqClient::DescribeRocketMQPublicAccessMonitorData(const DescribeRocketMQPublicAccessMonitorDataRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQPublicAccessMonitorData");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQPublicAccessMonitorDataResponse rsp = DescribeRocketMQPublicAccessMonitorDataResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQPublicAccessMonitorDataOutcome(rsp);
else
return DescribeRocketMQPublicAccessMonitorDataOutcome(o.GetError());
}
else
{
return DescribeRocketMQPublicAccessMonitorDataOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQPublicAccessMonitorDataAsync(const DescribeRocketMQPublicAccessMonitorDataRequest& request, const DescribeRocketMQPublicAccessMonitorDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQPublicAccessMonitorData(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQPublicAccessMonitorDataOutcomeCallable TdmqClient::DescribeRocketMQPublicAccessMonitorDataCallable(const DescribeRocketMQPublicAccessMonitorDataRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQPublicAccessMonitorDataOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQPublicAccessMonitorData(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQPublicAccessPointOutcome TdmqClient::DescribeRocketMQPublicAccessPoint(const DescribeRocketMQPublicAccessPointRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQPublicAccessPoint");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQPublicAccessPointResponse rsp = DescribeRocketMQPublicAccessPointResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQPublicAccessPointOutcome(rsp);
else
return DescribeRocketMQPublicAccessPointOutcome(o.GetError());
}
else
{
return DescribeRocketMQPublicAccessPointOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQPublicAccessPointAsync(const DescribeRocketMQPublicAccessPointRequest& request, const DescribeRocketMQPublicAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQPublicAccessPoint(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQPublicAccessPointOutcomeCallable TdmqClient::DescribeRocketMQPublicAccessPointCallable(const DescribeRocketMQPublicAccessPointRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQPublicAccessPointOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQPublicAccessPoint(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQRolesOutcome TdmqClient::DescribeRocketMQRoles(const DescribeRocketMQRolesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQRoles");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQRolesResponse rsp = DescribeRocketMQRolesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQRolesOutcome(rsp);
else
return DescribeRocketMQRolesOutcome(o.GetError());
}
else
{
return DescribeRocketMQRolesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQRolesAsync(const DescribeRocketMQRolesRequest& request, const DescribeRocketMQRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQRoles(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQRolesOutcomeCallable TdmqClient::DescribeRocketMQRolesCallable(const DescribeRocketMQRolesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQRolesOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQRoles(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQSmoothMigrationTaskOutcome TdmqClient::DescribeRocketMQSmoothMigrationTask(const DescribeRocketMQSmoothMigrationTaskRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQSmoothMigrationTask");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQSmoothMigrationTaskResponse rsp = DescribeRocketMQSmoothMigrationTaskResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQSmoothMigrationTaskOutcome(rsp);
else
return DescribeRocketMQSmoothMigrationTaskOutcome(o.GetError());
}
else
{
return DescribeRocketMQSmoothMigrationTaskOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQSmoothMigrationTaskAsync(const DescribeRocketMQSmoothMigrationTaskRequest& request, const DescribeRocketMQSmoothMigrationTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQSmoothMigrationTask(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQSmoothMigrationTaskOutcomeCallable TdmqClient::DescribeRocketMQSmoothMigrationTaskCallable(const DescribeRocketMQSmoothMigrationTaskRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQSmoothMigrationTaskOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQSmoothMigrationTask(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQSmoothMigrationTaskListOutcome TdmqClient::DescribeRocketMQSmoothMigrationTaskList(const DescribeRocketMQSmoothMigrationTaskListRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQSmoothMigrationTaskList");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQSmoothMigrationTaskListResponse rsp = DescribeRocketMQSmoothMigrationTaskListResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQSmoothMigrationTaskListOutcome(rsp);
else
return DescribeRocketMQSmoothMigrationTaskListOutcome(o.GetError());
}
else
{
return DescribeRocketMQSmoothMigrationTaskListOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQSmoothMigrationTaskListAsync(const DescribeRocketMQSmoothMigrationTaskListRequest& request, const DescribeRocketMQSmoothMigrationTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQSmoothMigrationTaskList(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQSmoothMigrationTaskListOutcomeCallable TdmqClient::DescribeRocketMQSmoothMigrationTaskListCallable(const DescribeRocketMQSmoothMigrationTaskListRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQSmoothMigrationTaskListOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQSmoothMigrationTaskList(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQSourceClusterGroupListOutcome TdmqClient::DescribeRocketMQSourceClusterGroupList(const DescribeRocketMQSourceClusterGroupListRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQSourceClusterGroupList");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQSourceClusterGroupListResponse rsp = DescribeRocketMQSourceClusterGroupListResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQSourceClusterGroupListOutcome(rsp);
else
return DescribeRocketMQSourceClusterGroupListOutcome(o.GetError());
}
else
{
return DescribeRocketMQSourceClusterGroupListOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQSourceClusterGroupListAsync(const DescribeRocketMQSourceClusterGroupListRequest& request, const DescribeRocketMQSourceClusterGroupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQSourceClusterGroupList(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQSourceClusterGroupListOutcomeCallable TdmqClient::DescribeRocketMQSourceClusterGroupListCallable(const DescribeRocketMQSourceClusterGroupListRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQSourceClusterGroupListOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQSourceClusterGroupList(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQSourceClusterTopicListOutcome TdmqClient::DescribeRocketMQSourceClusterTopicList(const DescribeRocketMQSourceClusterTopicListRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQSourceClusterTopicList");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQSourceClusterTopicListResponse rsp = DescribeRocketMQSourceClusterTopicListResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQSourceClusterTopicListOutcome(rsp);
else
return DescribeRocketMQSourceClusterTopicListOutcome(o.GetError());
}
else
{
return DescribeRocketMQSourceClusterTopicListOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQSourceClusterTopicListAsync(const DescribeRocketMQSourceClusterTopicListRequest& request, const DescribeRocketMQSourceClusterTopicListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQSourceClusterTopicList(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQSourceClusterTopicListOutcomeCallable TdmqClient::DescribeRocketMQSourceClusterTopicListCallable(const DescribeRocketMQSourceClusterTopicListRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQSourceClusterTopicListOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQSourceClusterTopicList(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQSubscriptionsOutcome TdmqClient::DescribeRocketMQSubscriptions(const DescribeRocketMQSubscriptionsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQSubscriptions");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQSubscriptionsResponse rsp = DescribeRocketMQSubscriptionsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQSubscriptionsOutcome(rsp);
else
return DescribeRocketMQSubscriptionsOutcome(o.GetError());
}
else
{
return DescribeRocketMQSubscriptionsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQSubscriptionsAsync(const DescribeRocketMQSubscriptionsRequest& request, const DescribeRocketMQSubscriptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQSubscriptions(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQSubscriptionsOutcomeCallable TdmqClient::DescribeRocketMQSubscriptionsCallable(const DescribeRocketMQSubscriptionsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQSubscriptionsOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQSubscriptions(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQTopicMsgsOutcome TdmqClient::DescribeRocketMQTopicMsgs(const DescribeRocketMQTopicMsgsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQTopicMsgs");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQTopicMsgsResponse rsp = DescribeRocketMQTopicMsgsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQTopicMsgsOutcome(rsp);
else
return DescribeRocketMQTopicMsgsOutcome(o.GetError());
}
else
{
return DescribeRocketMQTopicMsgsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQTopicMsgsAsync(const DescribeRocketMQTopicMsgsRequest& request, const DescribeRocketMQTopicMsgsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQTopicMsgs(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQTopicMsgsOutcomeCallable TdmqClient::DescribeRocketMQTopicMsgsCallable(const DescribeRocketMQTopicMsgsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQTopicMsgsOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQTopicMsgs(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQTopicStatsOutcome TdmqClient::DescribeRocketMQTopicStats(const DescribeRocketMQTopicStatsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQTopicStats");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQTopicStatsResponse rsp = DescribeRocketMQTopicStatsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQTopicStatsOutcome(rsp);
else
return DescribeRocketMQTopicStatsOutcome(o.GetError());
}
else
{
return DescribeRocketMQTopicStatsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQTopicStatsAsync(const DescribeRocketMQTopicStatsRequest& request, const DescribeRocketMQTopicStatsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQTopicStats(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQTopicStatsOutcomeCallable TdmqClient::DescribeRocketMQTopicStatsCallable(const DescribeRocketMQTopicStatsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQTopicStatsOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQTopicStats(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQTopicsOutcome TdmqClient::DescribeRocketMQTopics(const DescribeRocketMQTopicsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQTopics");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQTopicsResponse rsp = DescribeRocketMQTopicsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQTopicsOutcome(rsp);
else
return DescribeRocketMQTopicsOutcome(o.GetError());
}
else
{
return DescribeRocketMQTopicsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQTopicsAsync(const DescribeRocketMQTopicsRequest& request, const DescribeRocketMQTopicsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQTopics(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQTopicsOutcomeCallable TdmqClient::DescribeRocketMQTopicsCallable(const DescribeRocketMQTopicsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQTopicsOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQTopics(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQTopicsByGroupOutcome TdmqClient::DescribeRocketMQTopicsByGroup(const DescribeRocketMQTopicsByGroupRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQTopicsByGroup");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQTopicsByGroupResponse rsp = DescribeRocketMQTopicsByGroupResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQTopicsByGroupOutcome(rsp);
else
return DescribeRocketMQTopicsByGroupOutcome(o.GetError());
}
else
{
return DescribeRocketMQTopicsByGroupOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQTopicsByGroupAsync(const DescribeRocketMQTopicsByGroupRequest& request, const DescribeRocketMQTopicsByGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQTopicsByGroup(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQTopicsByGroupOutcomeCallable TdmqClient::DescribeRocketMQTopicsByGroupCallable(const DescribeRocketMQTopicsByGroupRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQTopicsByGroupOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQTopicsByGroup(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQVipInstanceDetailOutcome TdmqClient::DescribeRocketMQVipInstanceDetail(const DescribeRocketMQVipInstanceDetailRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQVipInstanceDetail");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQVipInstanceDetailResponse rsp = DescribeRocketMQVipInstanceDetailResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQVipInstanceDetailOutcome(rsp);
else
return DescribeRocketMQVipInstanceDetailOutcome(o.GetError());
}
else
{
return DescribeRocketMQVipInstanceDetailOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQVipInstanceDetailAsync(const DescribeRocketMQVipInstanceDetailRequest& request, const DescribeRocketMQVipInstanceDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQVipInstanceDetail(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQVipInstanceDetailOutcomeCallable TdmqClient::DescribeRocketMQVipInstanceDetailCallable(const DescribeRocketMQVipInstanceDetailRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQVipInstanceDetailOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQVipInstanceDetail(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRocketMQVipInstancesOutcome TdmqClient::DescribeRocketMQVipInstances(const DescribeRocketMQVipInstancesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRocketMQVipInstances");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRocketMQVipInstancesResponse rsp = DescribeRocketMQVipInstancesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRocketMQVipInstancesOutcome(rsp);
else
return DescribeRocketMQVipInstancesOutcome(o.GetError());
}
else
{
return DescribeRocketMQVipInstancesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRocketMQVipInstancesAsync(const DescribeRocketMQVipInstancesRequest& request, const DescribeRocketMQVipInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRocketMQVipInstances(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRocketMQVipInstancesOutcomeCallable TdmqClient::DescribeRocketMQVipInstancesCallable(const DescribeRocketMQVipInstancesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRocketMQVipInstancesOutcome()>>(
[this, request]()
{
return this->DescribeRocketMQVipInstances(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeRolesOutcome TdmqClient::DescribeRoles(const DescribeRolesRequest &request)
{
auto outcome = MakeRequest(request, "DescribeRoles");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeRolesResponse rsp = DescribeRolesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeRolesOutcome(rsp);
else
return DescribeRolesOutcome(o.GetError());
}
else
{
return DescribeRolesOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeRolesAsync(const DescribeRolesRequest& request, const DescribeRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeRoles(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeRolesOutcomeCallable TdmqClient::DescribeRolesCallable(const DescribeRolesRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeRolesOutcome()>>(
[this, request]()
{
return this->DescribeRoles(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeSubscriptionsOutcome TdmqClient::DescribeSubscriptions(const DescribeSubscriptionsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeSubscriptions");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeSubscriptionsResponse rsp = DescribeSubscriptionsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeSubscriptionsOutcome(rsp);
else
return DescribeSubscriptionsOutcome(o.GetError());
}
else
{
return DescribeSubscriptionsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeSubscriptionsAsync(const DescribeSubscriptionsRequest& request, const DescribeSubscriptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeSubscriptions(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeSubscriptionsOutcomeCallable TdmqClient::DescribeSubscriptionsCallable(const DescribeSubscriptionsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeSubscriptionsOutcome()>>(
[this, request]()
{
return this->DescribeSubscriptions(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeTopicMsgsOutcome TdmqClient::DescribeTopicMsgs(const DescribeTopicMsgsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeTopicMsgs");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeTopicMsgsResponse rsp = DescribeTopicMsgsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeTopicMsgsOutcome(rsp);
else
return DescribeTopicMsgsOutcome(o.GetError());
}
else
{
return DescribeTopicMsgsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeTopicMsgsAsync(const DescribeTopicMsgsRequest& request, const DescribeTopicMsgsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeTopicMsgs(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeTopicMsgsOutcomeCallable TdmqClient::DescribeTopicMsgsCallable(const DescribeTopicMsgsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeTopicMsgsOutcome()>>(
[this, request]()
{
return this->DescribeTopicMsgs(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::DescribeTopicsOutcome TdmqClient::DescribeTopics(const DescribeTopicsRequest &request)
{
auto outcome = MakeRequest(request, "DescribeTopics");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
DescribeTopicsResponse rsp = DescribeTopicsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return DescribeTopicsOutcome(rsp);
else
return DescribeTopicsOutcome(o.GetError());
}
else
{
return DescribeTopicsOutcome(outcome.GetError());
}
}
void TdmqClient::DescribeTopicsAsync(const DescribeTopicsRequest& request, const DescribeTopicsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->DescribeTopics(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::DescribeTopicsOutcomeCallable TdmqClient::DescribeTopicsCallable(const DescribeTopicsRequest &request)
{
auto task = std::make_shared<std::packaged_task<DescribeTopicsOutcome()>>(
[this, request]()
{
return this->DescribeTopics(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ExportRocketMQMessageDetailOutcome TdmqClient::ExportRocketMQMessageDetail(const ExportRocketMQMessageDetailRequest &request)
{
auto outcome = MakeRequest(request, "ExportRocketMQMessageDetail");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ExportRocketMQMessageDetailResponse rsp = ExportRocketMQMessageDetailResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ExportRocketMQMessageDetailOutcome(rsp);
else
return ExportRocketMQMessageDetailOutcome(o.GetError());
}
else
{
return ExportRocketMQMessageDetailOutcome(outcome.GetError());
}
}
void TdmqClient::ExportRocketMQMessageDetailAsync(const ExportRocketMQMessageDetailRequest& request, const ExportRocketMQMessageDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ExportRocketMQMessageDetail(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ExportRocketMQMessageDetailOutcomeCallable TdmqClient::ExportRocketMQMessageDetailCallable(const ExportRocketMQMessageDetailRequest &request)
{
auto task = std::make_shared<std::packaged_task<ExportRocketMQMessageDetailOutcome()>>(
[this, request]()
{
return this->ExportRocketMQMessageDetail(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ImportRocketMQConsumerGroupsOutcome TdmqClient::ImportRocketMQConsumerGroups(const ImportRocketMQConsumerGroupsRequest &request)
{
auto outcome = MakeRequest(request, "ImportRocketMQConsumerGroups");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ImportRocketMQConsumerGroupsResponse rsp = ImportRocketMQConsumerGroupsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ImportRocketMQConsumerGroupsOutcome(rsp);
else
return ImportRocketMQConsumerGroupsOutcome(o.GetError());
}
else
{
return ImportRocketMQConsumerGroupsOutcome(outcome.GetError());
}
}
void TdmqClient::ImportRocketMQConsumerGroupsAsync(const ImportRocketMQConsumerGroupsRequest& request, const ImportRocketMQConsumerGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ImportRocketMQConsumerGroups(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ImportRocketMQConsumerGroupsOutcomeCallable TdmqClient::ImportRocketMQConsumerGroupsCallable(const ImportRocketMQConsumerGroupsRequest &request)
{
auto task = std::make_shared<std::packaged_task<ImportRocketMQConsumerGroupsOutcome()>>(
[this, request]()
{
return this->ImportRocketMQConsumerGroups(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ImportRocketMQTopicsOutcome TdmqClient::ImportRocketMQTopics(const ImportRocketMQTopicsRequest &request)
{
auto outcome = MakeRequest(request, "ImportRocketMQTopics");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ImportRocketMQTopicsResponse rsp = ImportRocketMQTopicsResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ImportRocketMQTopicsOutcome(rsp);
else
return ImportRocketMQTopicsOutcome(o.GetError());
}
else
{
return ImportRocketMQTopicsOutcome(outcome.GetError());
}
}
void TdmqClient::ImportRocketMQTopicsAsync(const ImportRocketMQTopicsRequest& request, const ImportRocketMQTopicsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ImportRocketMQTopics(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ImportRocketMQTopicsOutcomeCallable TdmqClient::ImportRocketMQTopicsCallable(const ImportRocketMQTopicsRequest &request)
{
auto task = std::make_shared<std::packaged_task<ImportRocketMQTopicsOutcome()>>(
[this, request]()
{
return this->ImportRocketMQTopics(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyAMQPClusterOutcome TdmqClient::ModifyAMQPCluster(const ModifyAMQPClusterRequest &request)
{
auto outcome = MakeRequest(request, "ModifyAMQPCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyAMQPClusterResponse rsp = ModifyAMQPClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyAMQPClusterOutcome(rsp);
else
return ModifyAMQPClusterOutcome(o.GetError());
}
else
{
return ModifyAMQPClusterOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyAMQPClusterAsync(const ModifyAMQPClusterRequest& request, const ModifyAMQPClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyAMQPCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyAMQPClusterOutcomeCallable TdmqClient::ModifyAMQPClusterCallable(const ModifyAMQPClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyAMQPClusterOutcome()>>(
[this, request]()
{
return this->ModifyAMQPCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyClusterOutcome TdmqClient::ModifyCluster(const ModifyClusterRequest &request)
{
auto outcome = MakeRequest(request, "ModifyCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyClusterResponse rsp = ModifyClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyClusterOutcome(rsp);
else
return ModifyClusterOutcome(o.GetError());
}
else
{
return ModifyClusterOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyClusterAsync(const ModifyClusterRequest& request, const ModifyClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyClusterOutcomeCallable TdmqClient::ModifyClusterCallable(const ModifyClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyClusterOutcome()>>(
[this, request]()
{
return this->ModifyCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyCmqQueueAttributeOutcome TdmqClient::ModifyCmqQueueAttribute(const ModifyCmqQueueAttributeRequest &request)
{
auto outcome = MakeRequest(request, "ModifyCmqQueueAttribute");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyCmqQueueAttributeResponse rsp = ModifyCmqQueueAttributeResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyCmqQueueAttributeOutcome(rsp);
else
return ModifyCmqQueueAttributeOutcome(o.GetError());
}
else
{
return ModifyCmqQueueAttributeOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyCmqQueueAttributeAsync(const ModifyCmqQueueAttributeRequest& request, const ModifyCmqQueueAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyCmqQueueAttribute(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyCmqQueueAttributeOutcomeCallable TdmqClient::ModifyCmqQueueAttributeCallable(const ModifyCmqQueueAttributeRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyCmqQueueAttributeOutcome()>>(
[this, request]()
{
return this->ModifyCmqQueueAttribute(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyCmqSubscriptionAttributeOutcome TdmqClient::ModifyCmqSubscriptionAttribute(const ModifyCmqSubscriptionAttributeRequest &request)
{
auto outcome = MakeRequest(request, "ModifyCmqSubscriptionAttribute");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyCmqSubscriptionAttributeResponse rsp = ModifyCmqSubscriptionAttributeResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyCmqSubscriptionAttributeOutcome(rsp);
else
return ModifyCmqSubscriptionAttributeOutcome(o.GetError());
}
else
{
return ModifyCmqSubscriptionAttributeOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyCmqSubscriptionAttributeAsync(const ModifyCmqSubscriptionAttributeRequest& request, const ModifyCmqSubscriptionAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyCmqSubscriptionAttribute(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyCmqSubscriptionAttributeOutcomeCallable TdmqClient::ModifyCmqSubscriptionAttributeCallable(const ModifyCmqSubscriptionAttributeRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyCmqSubscriptionAttributeOutcome()>>(
[this, request]()
{
return this->ModifyCmqSubscriptionAttribute(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyCmqTopicAttributeOutcome TdmqClient::ModifyCmqTopicAttribute(const ModifyCmqTopicAttributeRequest &request)
{
auto outcome = MakeRequest(request, "ModifyCmqTopicAttribute");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyCmqTopicAttributeResponse rsp = ModifyCmqTopicAttributeResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyCmqTopicAttributeOutcome(rsp);
else
return ModifyCmqTopicAttributeOutcome(o.GetError());
}
else
{
return ModifyCmqTopicAttributeOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyCmqTopicAttributeAsync(const ModifyCmqTopicAttributeRequest& request, const ModifyCmqTopicAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyCmqTopicAttribute(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyCmqTopicAttributeOutcomeCallable TdmqClient::ModifyCmqTopicAttributeCallable(const ModifyCmqTopicAttributeRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyCmqTopicAttributeOutcome()>>(
[this, request]()
{
return this->ModifyCmqTopicAttribute(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyEnvironmentAttributesOutcome TdmqClient::ModifyEnvironmentAttributes(const ModifyEnvironmentAttributesRequest &request)
{
auto outcome = MakeRequest(request, "ModifyEnvironmentAttributes");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyEnvironmentAttributesResponse rsp = ModifyEnvironmentAttributesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyEnvironmentAttributesOutcome(rsp);
else
return ModifyEnvironmentAttributesOutcome(o.GetError());
}
else
{
return ModifyEnvironmentAttributesOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyEnvironmentAttributesAsync(const ModifyEnvironmentAttributesRequest& request, const ModifyEnvironmentAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyEnvironmentAttributes(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyEnvironmentAttributesOutcomeCallable TdmqClient::ModifyEnvironmentAttributesCallable(const ModifyEnvironmentAttributesRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyEnvironmentAttributesOutcome()>>(
[this, request]()
{
return this->ModifyEnvironmentAttributes(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyEnvironmentRoleOutcome TdmqClient::ModifyEnvironmentRole(const ModifyEnvironmentRoleRequest &request)
{
auto outcome = MakeRequest(request, "ModifyEnvironmentRole");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyEnvironmentRoleResponse rsp = ModifyEnvironmentRoleResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyEnvironmentRoleOutcome(rsp);
else
return ModifyEnvironmentRoleOutcome(o.GetError());
}
else
{
return ModifyEnvironmentRoleOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyEnvironmentRoleAsync(const ModifyEnvironmentRoleRequest& request, const ModifyEnvironmentRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyEnvironmentRole(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyEnvironmentRoleOutcomeCallable TdmqClient::ModifyEnvironmentRoleCallable(const ModifyEnvironmentRoleRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyEnvironmentRoleOutcome()>>(
[this, request]()
{
return this->ModifyEnvironmentRole(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyPublicNetworkAccessPointOutcome TdmqClient::ModifyPublicNetworkAccessPoint(const ModifyPublicNetworkAccessPointRequest &request)
{
auto outcome = MakeRequest(request, "ModifyPublicNetworkAccessPoint");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyPublicNetworkAccessPointResponse rsp = ModifyPublicNetworkAccessPointResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyPublicNetworkAccessPointOutcome(rsp);
else
return ModifyPublicNetworkAccessPointOutcome(o.GetError());
}
else
{
return ModifyPublicNetworkAccessPointOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyPublicNetworkAccessPointAsync(const ModifyPublicNetworkAccessPointRequest& request, const ModifyPublicNetworkAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyPublicNetworkAccessPoint(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyPublicNetworkAccessPointOutcomeCallable TdmqClient::ModifyPublicNetworkAccessPointCallable(const ModifyPublicNetworkAccessPointRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyPublicNetworkAccessPointOutcome()>>(
[this, request]()
{
return this->ModifyPublicNetworkAccessPoint(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRabbitMQUserOutcome TdmqClient::ModifyRabbitMQUser(const ModifyRabbitMQUserRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRabbitMQUser");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRabbitMQUserResponse rsp = ModifyRabbitMQUserResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRabbitMQUserOutcome(rsp);
else
return ModifyRabbitMQUserOutcome(o.GetError());
}
else
{
return ModifyRabbitMQUserOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRabbitMQUserAsync(const ModifyRabbitMQUserRequest& request, const ModifyRabbitMQUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRabbitMQUser(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRabbitMQUserOutcomeCallable TdmqClient::ModifyRabbitMQUserCallable(const ModifyRabbitMQUserRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRabbitMQUserOutcome()>>(
[this, request]()
{
return this->ModifyRabbitMQUser(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRabbitMQVipInstanceOutcome TdmqClient::ModifyRabbitMQVipInstance(const ModifyRabbitMQVipInstanceRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRabbitMQVipInstance");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRabbitMQVipInstanceResponse rsp = ModifyRabbitMQVipInstanceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRabbitMQVipInstanceOutcome(rsp);
else
return ModifyRabbitMQVipInstanceOutcome(o.GetError());
}
else
{
return ModifyRabbitMQVipInstanceOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRabbitMQVipInstanceAsync(const ModifyRabbitMQVipInstanceRequest& request, const ModifyRabbitMQVipInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRabbitMQVipInstance(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRabbitMQVipInstanceOutcomeCallable TdmqClient::ModifyRabbitMQVipInstanceCallable(const ModifyRabbitMQVipInstanceRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRabbitMQVipInstanceOutcome()>>(
[this, request]()
{
return this->ModifyRabbitMQVipInstance(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRabbitMQVirtualHostOutcome TdmqClient::ModifyRabbitMQVirtualHost(const ModifyRabbitMQVirtualHostRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRabbitMQVirtualHost");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRabbitMQVirtualHostResponse rsp = ModifyRabbitMQVirtualHostResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRabbitMQVirtualHostOutcome(rsp);
else
return ModifyRabbitMQVirtualHostOutcome(o.GetError());
}
else
{
return ModifyRabbitMQVirtualHostOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRabbitMQVirtualHostAsync(const ModifyRabbitMQVirtualHostRequest& request, const ModifyRabbitMQVirtualHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRabbitMQVirtualHost(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRabbitMQVirtualHostOutcomeCallable TdmqClient::ModifyRabbitMQVirtualHostCallable(const ModifyRabbitMQVirtualHostRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRabbitMQVirtualHostOutcome()>>(
[this, request]()
{
return this->ModifyRabbitMQVirtualHost(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRocketMQClusterOutcome TdmqClient::ModifyRocketMQCluster(const ModifyRocketMQClusterRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRocketMQCluster");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRocketMQClusterResponse rsp = ModifyRocketMQClusterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRocketMQClusterOutcome(rsp);
else
return ModifyRocketMQClusterOutcome(o.GetError());
}
else
{
return ModifyRocketMQClusterOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRocketMQClusterAsync(const ModifyRocketMQClusterRequest& request, const ModifyRocketMQClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRocketMQCluster(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRocketMQClusterOutcomeCallable TdmqClient::ModifyRocketMQClusterCallable(const ModifyRocketMQClusterRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRocketMQClusterOutcome()>>(
[this, request]()
{
return this->ModifyRocketMQCluster(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRocketMQEnvironmentRoleOutcome TdmqClient::ModifyRocketMQEnvironmentRole(const ModifyRocketMQEnvironmentRoleRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRocketMQEnvironmentRole");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRocketMQEnvironmentRoleResponse rsp = ModifyRocketMQEnvironmentRoleResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRocketMQEnvironmentRoleOutcome(rsp);
else
return ModifyRocketMQEnvironmentRoleOutcome(o.GetError());
}
else
{
return ModifyRocketMQEnvironmentRoleOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRocketMQEnvironmentRoleAsync(const ModifyRocketMQEnvironmentRoleRequest& request, const ModifyRocketMQEnvironmentRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRocketMQEnvironmentRole(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRocketMQEnvironmentRoleOutcomeCallable TdmqClient::ModifyRocketMQEnvironmentRoleCallable(const ModifyRocketMQEnvironmentRoleRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRocketMQEnvironmentRoleOutcome()>>(
[this, request]()
{
return this->ModifyRocketMQEnvironmentRole(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRocketMQGroupOutcome TdmqClient::ModifyRocketMQGroup(const ModifyRocketMQGroupRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRocketMQGroup");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRocketMQGroupResponse rsp = ModifyRocketMQGroupResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRocketMQGroupOutcome(rsp);
else
return ModifyRocketMQGroupOutcome(o.GetError());
}
else
{
return ModifyRocketMQGroupOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRocketMQGroupAsync(const ModifyRocketMQGroupRequest& request, const ModifyRocketMQGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRocketMQGroup(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRocketMQGroupOutcomeCallable TdmqClient::ModifyRocketMQGroupCallable(const ModifyRocketMQGroupRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRocketMQGroupOutcome()>>(
[this, request]()
{
return this->ModifyRocketMQGroup(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRocketMQInstanceOutcome TdmqClient::ModifyRocketMQInstance(const ModifyRocketMQInstanceRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRocketMQInstance");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRocketMQInstanceResponse rsp = ModifyRocketMQInstanceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRocketMQInstanceOutcome(rsp);
else
return ModifyRocketMQInstanceOutcome(o.GetError());
}
else
{
return ModifyRocketMQInstanceOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRocketMQInstanceAsync(const ModifyRocketMQInstanceRequest& request, const ModifyRocketMQInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRocketMQInstance(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRocketMQInstanceOutcomeCallable TdmqClient::ModifyRocketMQInstanceCallable(const ModifyRocketMQInstanceRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRocketMQInstanceOutcome()>>(
[this, request]()
{
return this->ModifyRocketMQInstance(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRocketMQInstanceSpecOutcome TdmqClient::ModifyRocketMQInstanceSpec(const ModifyRocketMQInstanceSpecRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRocketMQInstanceSpec");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRocketMQInstanceSpecResponse rsp = ModifyRocketMQInstanceSpecResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRocketMQInstanceSpecOutcome(rsp);
else
return ModifyRocketMQInstanceSpecOutcome(o.GetError());
}
else
{
return ModifyRocketMQInstanceSpecOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRocketMQInstanceSpecAsync(const ModifyRocketMQInstanceSpecRequest& request, const ModifyRocketMQInstanceSpecAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRocketMQInstanceSpec(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRocketMQInstanceSpecOutcomeCallable TdmqClient::ModifyRocketMQInstanceSpecCallable(const ModifyRocketMQInstanceSpecRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRocketMQInstanceSpecOutcome()>>(
[this, request]()
{
return this->ModifyRocketMQInstanceSpec(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRocketMQNamespaceOutcome TdmqClient::ModifyRocketMQNamespace(const ModifyRocketMQNamespaceRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRocketMQNamespace");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRocketMQNamespaceResponse rsp = ModifyRocketMQNamespaceResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRocketMQNamespaceOutcome(rsp);
else
return ModifyRocketMQNamespaceOutcome(o.GetError());
}
else
{
return ModifyRocketMQNamespaceOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRocketMQNamespaceAsync(const ModifyRocketMQNamespaceRequest& request, const ModifyRocketMQNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRocketMQNamespace(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRocketMQNamespaceOutcomeCallable TdmqClient::ModifyRocketMQNamespaceCallable(const ModifyRocketMQNamespaceRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRocketMQNamespaceOutcome()>>(
[this, request]()
{
return this->ModifyRocketMQNamespace(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRocketMQRoleOutcome TdmqClient::ModifyRocketMQRole(const ModifyRocketMQRoleRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRocketMQRole");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRocketMQRoleResponse rsp = ModifyRocketMQRoleResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRocketMQRoleOutcome(rsp);
else
return ModifyRocketMQRoleOutcome(o.GetError());
}
else
{
return ModifyRocketMQRoleOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRocketMQRoleAsync(const ModifyRocketMQRoleRequest& request, const ModifyRocketMQRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRocketMQRole(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRocketMQRoleOutcomeCallable TdmqClient::ModifyRocketMQRoleCallable(const ModifyRocketMQRoleRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRocketMQRoleOutcome()>>(
[this, request]()
{
return this->ModifyRocketMQRole(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRocketMQTopicOutcome TdmqClient::ModifyRocketMQTopic(const ModifyRocketMQTopicRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRocketMQTopic");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRocketMQTopicResponse rsp = ModifyRocketMQTopicResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRocketMQTopicOutcome(rsp);
else
return ModifyRocketMQTopicOutcome(o.GetError());
}
else
{
return ModifyRocketMQTopicOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRocketMQTopicAsync(const ModifyRocketMQTopicRequest& request, const ModifyRocketMQTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRocketMQTopic(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRocketMQTopicOutcomeCallable TdmqClient::ModifyRocketMQTopicCallable(const ModifyRocketMQTopicRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRocketMQTopicOutcome()>>(
[this, request]()
{
return this->ModifyRocketMQTopic(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyRoleOutcome TdmqClient::ModifyRole(const ModifyRoleRequest &request)
{
auto outcome = MakeRequest(request, "ModifyRole");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyRoleResponse rsp = ModifyRoleResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyRoleOutcome(rsp);
else
return ModifyRoleOutcome(o.GetError());
}
else
{
return ModifyRoleOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyRoleAsync(const ModifyRoleRequest& request, const ModifyRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyRole(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyRoleOutcomeCallable TdmqClient::ModifyRoleCallable(const ModifyRoleRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyRoleOutcome()>>(
[this, request]()
{
return this->ModifyRole(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ModifyTopicOutcome TdmqClient::ModifyTopic(const ModifyTopicRequest &request)
{
auto outcome = MakeRequest(request, "ModifyTopic");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ModifyTopicResponse rsp = ModifyTopicResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ModifyTopicOutcome(rsp);
else
return ModifyTopicOutcome(o.GetError());
}
else
{
return ModifyTopicOutcome(outcome.GetError());
}
}
void TdmqClient::ModifyTopicAsync(const ModifyTopicRequest& request, const ModifyTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ModifyTopic(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ModifyTopicOutcomeCallable TdmqClient::ModifyTopicCallable(const ModifyTopicRequest &request)
{
auto task = std::make_shared<std::packaged_task<ModifyTopicOutcome()>>(
[this, request]()
{
return this->ModifyTopic(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::PublishCmqMsgOutcome TdmqClient::PublishCmqMsg(const PublishCmqMsgRequest &request)
{
auto outcome = MakeRequest(request, "PublishCmqMsg");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
PublishCmqMsgResponse rsp = PublishCmqMsgResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return PublishCmqMsgOutcome(rsp);
else
return PublishCmqMsgOutcome(o.GetError());
}
else
{
return PublishCmqMsgOutcome(outcome.GetError());
}
}
void TdmqClient::PublishCmqMsgAsync(const PublishCmqMsgRequest& request, const PublishCmqMsgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->PublishCmqMsg(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::PublishCmqMsgOutcomeCallable TdmqClient::PublishCmqMsgCallable(const PublishCmqMsgRequest &request)
{
auto task = std::make_shared<std::packaged_task<PublishCmqMsgOutcome()>>(
[this, request]()
{
return this->PublishCmqMsg(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ReceiveMessageOutcome TdmqClient::ReceiveMessage(const ReceiveMessageRequest &request)
{
auto outcome = MakeRequest(request, "ReceiveMessage");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ReceiveMessageResponse rsp = ReceiveMessageResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ReceiveMessageOutcome(rsp);
else
return ReceiveMessageOutcome(o.GetError());
}
else
{
return ReceiveMessageOutcome(outcome.GetError());
}
}
void TdmqClient::ReceiveMessageAsync(const ReceiveMessageRequest& request, const ReceiveMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ReceiveMessage(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ReceiveMessageOutcomeCallable TdmqClient::ReceiveMessageCallable(const ReceiveMessageRequest &request)
{
auto task = std::make_shared<std::packaged_task<ReceiveMessageOutcome()>>(
[this, request]()
{
return this->ReceiveMessage(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ResetMsgSubOffsetByTimestampOutcome TdmqClient::ResetMsgSubOffsetByTimestamp(const ResetMsgSubOffsetByTimestampRequest &request)
{
auto outcome = MakeRequest(request, "ResetMsgSubOffsetByTimestamp");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ResetMsgSubOffsetByTimestampResponse rsp = ResetMsgSubOffsetByTimestampResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ResetMsgSubOffsetByTimestampOutcome(rsp);
else
return ResetMsgSubOffsetByTimestampOutcome(o.GetError());
}
else
{
return ResetMsgSubOffsetByTimestampOutcome(outcome.GetError());
}
}
void TdmqClient::ResetMsgSubOffsetByTimestampAsync(const ResetMsgSubOffsetByTimestampRequest& request, const ResetMsgSubOffsetByTimestampAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ResetMsgSubOffsetByTimestamp(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ResetMsgSubOffsetByTimestampOutcomeCallable TdmqClient::ResetMsgSubOffsetByTimestampCallable(const ResetMsgSubOffsetByTimestampRequest &request)
{
auto task = std::make_shared<std::packaged_task<ResetMsgSubOffsetByTimestampOutcome()>>(
[this, request]()
{
return this->ResetMsgSubOffsetByTimestamp(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::ResetRocketMQConsumerOffSetOutcome TdmqClient::ResetRocketMQConsumerOffSet(const ResetRocketMQConsumerOffSetRequest &request)
{
auto outcome = MakeRequest(request, "ResetRocketMQConsumerOffSet");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
ResetRocketMQConsumerOffSetResponse rsp = ResetRocketMQConsumerOffSetResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return ResetRocketMQConsumerOffSetOutcome(rsp);
else
return ResetRocketMQConsumerOffSetOutcome(o.GetError());
}
else
{
return ResetRocketMQConsumerOffSetOutcome(outcome.GetError());
}
}
void TdmqClient::ResetRocketMQConsumerOffSetAsync(const ResetRocketMQConsumerOffSetRequest& request, const ResetRocketMQConsumerOffSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->ResetRocketMQConsumerOffSet(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::ResetRocketMQConsumerOffSetOutcomeCallable TdmqClient::ResetRocketMQConsumerOffSetCallable(const ResetRocketMQConsumerOffSetRequest &request)
{
auto task = std::make_shared<std::packaged_task<ResetRocketMQConsumerOffSetOutcome()>>(
[this, request]()
{
return this->ResetRocketMQConsumerOffSet(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::RewindCmqQueueOutcome TdmqClient::RewindCmqQueue(const RewindCmqQueueRequest &request)
{
auto outcome = MakeRequest(request, "RewindCmqQueue");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
RewindCmqQueueResponse rsp = RewindCmqQueueResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return RewindCmqQueueOutcome(rsp);
else
return RewindCmqQueueOutcome(o.GetError());
}
else
{
return RewindCmqQueueOutcome(outcome.GetError());
}
}
void TdmqClient::RewindCmqQueueAsync(const RewindCmqQueueRequest& request, const RewindCmqQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->RewindCmqQueue(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::RewindCmqQueueOutcomeCallable TdmqClient::RewindCmqQueueCallable(const RewindCmqQueueRequest &request)
{
auto task = std::make_shared<std::packaged_task<RewindCmqQueueOutcome()>>(
[this, request]()
{
return this->RewindCmqQueue(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::SendBatchMessagesOutcome TdmqClient::SendBatchMessages(const SendBatchMessagesRequest &request)
{
auto outcome = MakeRequest(request, "SendBatchMessages");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
SendBatchMessagesResponse rsp = SendBatchMessagesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return SendBatchMessagesOutcome(rsp);
else
return SendBatchMessagesOutcome(o.GetError());
}
else
{
return SendBatchMessagesOutcome(outcome.GetError());
}
}
void TdmqClient::SendBatchMessagesAsync(const SendBatchMessagesRequest& request, const SendBatchMessagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->SendBatchMessages(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::SendBatchMessagesOutcomeCallable TdmqClient::SendBatchMessagesCallable(const SendBatchMessagesRequest &request)
{
auto task = std::make_shared<std::packaged_task<SendBatchMessagesOutcome()>>(
[this, request]()
{
return this->SendBatchMessages(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::SendCmqMsgOutcome TdmqClient::SendCmqMsg(const SendCmqMsgRequest &request)
{
auto outcome = MakeRequest(request, "SendCmqMsg");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
SendCmqMsgResponse rsp = SendCmqMsgResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return SendCmqMsgOutcome(rsp);
else
return SendCmqMsgOutcome(o.GetError());
}
else
{
return SendCmqMsgOutcome(outcome.GetError());
}
}
void TdmqClient::SendCmqMsgAsync(const SendCmqMsgRequest& request, const SendCmqMsgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->SendCmqMsg(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::SendCmqMsgOutcomeCallable TdmqClient::SendCmqMsgCallable(const SendCmqMsgRequest &request)
{
auto task = std::make_shared<std::packaged_task<SendCmqMsgOutcome()>>(
[this, request]()
{
return this->SendCmqMsg(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::SendMessagesOutcome TdmqClient::SendMessages(const SendMessagesRequest &request)
{
auto outcome = MakeRequest(request, "SendMessages");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
SendMessagesResponse rsp = SendMessagesResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return SendMessagesOutcome(rsp);
else
return SendMessagesOutcome(o.GetError());
}
else
{
return SendMessagesOutcome(outcome.GetError());
}
}
void TdmqClient::SendMessagesAsync(const SendMessagesRequest& request, const SendMessagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->SendMessages(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::SendMessagesOutcomeCallable TdmqClient::SendMessagesCallable(const SendMessagesRequest &request)
{
auto task = std::make_shared<std::packaged_task<SendMessagesOutcome()>>(
[this, request]()
{
return this->SendMessages(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::SendMsgOutcome TdmqClient::SendMsg(const SendMsgRequest &request)
{
auto outcome = MakeRequest(request, "SendMsg");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
SendMsgResponse rsp = SendMsgResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return SendMsgOutcome(rsp);
else
return SendMsgOutcome(o.GetError());
}
else
{
return SendMsgOutcome(outcome.GetError());
}
}
void TdmqClient::SendMsgAsync(const SendMsgRequest& request, const SendMsgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->SendMsg(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::SendMsgOutcomeCallable TdmqClient::SendMsgCallable(const SendMsgRequest &request)
{
auto task = std::make_shared<std::packaged_task<SendMsgOutcome()>>(
[this, request]()
{
return this->SendMsg(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::SendRocketMQMessageOutcome TdmqClient::SendRocketMQMessage(const SendRocketMQMessageRequest &request)
{
auto outcome = MakeRequest(request, "SendRocketMQMessage");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
SendRocketMQMessageResponse rsp = SendRocketMQMessageResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return SendRocketMQMessageOutcome(rsp);
else
return SendRocketMQMessageOutcome(o.GetError());
}
else
{
return SendRocketMQMessageOutcome(outcome.GetError());
}
}
void TdmqClient::SendRocketMQMessageAsync(const SendRocketMQMessageRequest& request, const SendRocketMQMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->SendRocketMQMessage(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::SendRocketMQMessageOutcomeCallable TdmqClient::SendRocketMQMessageCallable(const SendRocketMQMessageRequest &request)
{
auto task = std::make_shared<std::packaged_task<SendRocketMQMessageOutcome()>>(
[this, request]()
{
return this->SendRocketMQMessage(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::SetRocketMQPublicAccessPointOutcome TdmqClient::SetRocketMQPublicAccessPoint(const SetRocketMQPublicAccessPointRequest &request)
{
auto outcome = MakeRequest(request, "SetRocketMQPublicAccessPoint");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
SetRocketMQPublicAccessPointResponse rsp = SetRocketMQPublicAccessPointResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return SetRocketMQPublicAccessPointOutcome(rsp);
else
return SetRocketMQPublicAccessPointOutcome(o.GetError());
}
else
{
return SetRocketMQPublicAccessPointOutcome(outcome.GetError());
}
}
void TdmqClient::SetRocketMQPublicAccessPointAsync(const SetRocketMQPublicAccessPointRequest& request, const SetRocketMQPublicAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->SetRocketMQPublicAccessPoint(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::SetRocketMQPublicAccessPointOutcomeCallable TdmqClient::SetRocketMQPublicAccessPointCallable(const SetRocketMQPublicAccessPointRequest &request)
{
auto task = std::make_shared<std::packaged_task<SetRocketMQPublicAccessPointOutcome()>>(
[this, request]()
{
return this->SetRocketMQPublicAccessPoint(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::UnbindCmqDeadLetterOutcome TdmqClient::UnbindCmqDeadLetter(const UnbindCmqDeadLetterRequest &request)
{
auto outcome = MakeRequest(request, "UnbindCmqDeadLetter");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
UnbindCmqDeadLetterResponse rsp = UnbindCmqDeadLetterResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return UnbindCmqDeadLetterOutcome(rsp);
else
return UnbindCmqDeadLetterOutcome(o.GetError());
}
else
{
return UnbindCmqDeadLetterOutcome(outcome.GetError());
}
}
void TdmqClient::UnbindCmqDeadLetterAsync(const UnbindCmqDeadLetterRequest& request, const UnbindCmqDeadLetterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->UnbindCmqDeadLetter(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::UnbindCmqDeadLetterOutcomeCallable TdmqClient::UnbindCmqDeadLetterCallable(const UnbindCmqDeadLetterRequest &request)
{
auto task = std::make_shared<std::packaged_task<UnbindCmqDeadLetterOutcome()>>(
[this, request]()
{
return this->UnbindCmqDeadLetter(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TdmqClient::VerifyRocketMQConsumeOutcome TdmqClient::VerifyRocketMQConsume(const VerifyRocketMQConsumeRequest &request)
{
auto outcome = MakeRequest(request, "VerifyRocketMQConsume");
if (outcome.IsSuccess())
{
auto r = outcome.GetResult();
string payload = string(r.Body(), r.BodySize());
VerifyRocketMQConsumeResponse rsp = VerifyRocketMQConsumeResponse();
auto o = rsp.Deserialize(payload);
if (o.IsSuccess())
return VerifyRocketMQConsumeOutcome(rsp);
else
return VerifyRocketMQConsumeOutcome(o.GetError());
}
else
{
return VerifyRocketMQConsumeOutcome(outcome.GetError());
}
}
void TdmqClient::VerifyRocketMQConsumeAsync(const VerifyRocketMQConsumeRequest& request, const VerifyRocketMQConsumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context)
{
auto fn = [this, request, handler, context]()
{
handler(this, request, this->VerifyRocketMQConsume(request), context);
};
Executor::GetInstance()->Submit(new Runnable(fn));
}
TdmqClient::VerifyRocketMQConsumeOutcomeCallable TdmqClient::VerifyRocketMQConsumeCallable(const VerifyRocketMQConsumeRequest &request)
{
auto task = std::make_shared<std::packaged_task<VerifyRocketMQConsumeOutcome()>>(
[this, request]()
{
return this->VerifyRocketMQConsume(request);
}
);
Executor::GetInstance()->Submit(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-cpp.git
git@gitee.com:tencentcloud/tencentcloud-sdk-cpp.git
tencentcloud
tencentcloud-sdk-cpp
tencentcloud-sdk-cpp
master

搜索帮助