<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gozuk16</author_name>
  <author_url>https://blog.hatena.ne.jp/gozuk16/</author_url>
  <blog_title>ごずろぐ</blog_title>
  <blog_url>https://gozuk16.hatenablog.com/</blog_url>
  <categories>
    <anon>Spark</anon>
    <anon>Groovy</anon>
  </categories>
  <description>状況 Spark FrameworkというSinatraっぽい軽量サーバを使ってGroovyでWebAPIのサーバを書いてます。 sparkjava.com サーバを停止する処理を呼ぶと停止処理中に固まってしまうという現象が起きてました。 実装 サーバを停止する方法は公式ドキュメントにある通り簡単なものです。 Stopping the Server By calling the stop() method the server is stopped and all routes are cleared. stop(); 以下のようにAPIとして呼べるようにしてあります。 get &quot;/stop&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgozuk16.hatenablog.com%2Fentry%2F2016%2F08%2F25%2F170148&quot; title=&quot;Spark Frameworkでstop()を呼ぶとInterruptedExceptionが発生して固まる - ごずろぐ&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>2016-08-25 17:01:48</published>
  <title>Spark Frameworkでstop()を呼ぶとInterruptedExceptionが発生して固まる</title>
  <type>rich</type>
  <url>https://gozuk16.hatenablog.com/entry/2016/08/25/170148</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
