<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tagomoris</author_name>
  <author_url>https://blog.hatena.ne.jp/tagomoris/</author_url>
  <blog_title>たごもりすメモ</blog_title>
  <blog_url>https://tagomoris.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>複数のホストに並行してHTTPリクエストを送るコードをJavaで書く必要があって、Undertowをサーバに使ってるんでUndertowの http client でもいいかなーと思ってたんだけど、okhttpにも非同期リクエストの機能があるみたい。ただパッと見て実行スレッド数の設定とかどうなっとるんや、というのが全くわかんなかったのでちょっとコードを追ってみたところ、以下のような感じのコードを発見しました。 呼び出し順としてはの以下ような感じ。 OkHttpClient.newCall(Request req) Call.enqueue(Callback callback) RealCall…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftagomoris.hatenablog.com%2Fentry%2F2017%2F06%2F29%2F151949&quot; title=&quot;okhttpで非同期リクエストを実行するとき実行スレッドはどうなっているのか - たごもりすメモ&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>2017-06-29 15:19:49</published>
  <title>okhttpで非同期リクエストを実行するとき実行スレッドはどうなっているのか</title>
  <type>rich</type>
  <url>https://tagomoris.hatenablog.com/entry/2017/06/29/151949</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
