<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>knt_mr</author_name>
  <author_url>https://blog.hatena.ne.jp/knt_mr/</author_url>
  <blog_title>kntmr-blog</blog_title>
  <blog_url>https://kntmr.hatenablog.com/</blog_url>
  <categories>
    <anon>Gatling</anon>
  </categories>
  <description>備忘録。前回の続編。 kntmr.hatenablog.com Gatling で、ある API にリクエストして、期待するレスポンスが返るまで待機とリトライを繰り返したい。 以下は API のレスポンスからステータスを取り出して status=0 が返るまで 10 秒の待機とリトライを繰り返すサンプル。API リクエストとか session の使い方とかイマイチな部分はあるかもしれない...。あと、実際にはリトライの最大試行回数を制限した方がいい。 doWhile + Thread#sleep 最初、doWhile と Thread#sleep でやろうとしたけどうまくいかず。(スレッドが溜…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkntmr.hatenablog.com%2Fentry%2F2024%2F07%2F10%2F090000&quot; title=&quot;Gatling で API リクエストして期待するレスポンスが返るまで待機とリトライを繰り返したい - kntmr-blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-07-10 09:00:00</published>
  <title>Gatling で API リクエストして期待するレスポンスが返るまで待機とリトライを繰り返したい</title>
  <type>rich</type>
  <url>https://kntmr.hatenablog.com/entry/2024/07/10/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
