<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dk521123</author_name>
  <author_url>https://blog.hatena.ne.jp/dk521123/</author_url>
  <blog_title>プログラム の超個人的なメモ</blog_title>
  <blog_url>https://dk521123.hatenablog.com/</blog_url>
  <categories>
    <anon>デザインパターン/マルチスレッド</anon>
  </categories>
  <description>Balking パターン * Balking （ボーキング） ⇒Balk「ボーク」（野球のボークと同じで、投球動作を「途中でやめる」） * balk(ボーク) = 「急に止まる」「妨げる」「裏をかく」 * ざっくり言うと、「ブロック」。 使いどころ * 別スレッドが処理していたら、処理を実行せずに返す場合 * オブジェクトの状態が不都合な時に、処理を実行したくない場合 構文 private volatile boolean isWorking = false; void execute() { synchronized (this) { if (isWorking) { // !実行中（isW…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F34200869&quot; title=&quot;【デザインパターン】【非同期】Balking パターン - プログラム の超個人的なメモ&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>2014-11-04 00:00:40</published>
  <title>【デザインパターン】【非同期】Balking パターン</title>
  <type>rich</type>
  <url>https://dk521123.hatenablog.com/entry/34200869</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
