<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>ＵＤＰ受信のように、同じデータが短い時間間隔で送られてくる可能性がある 場合の受け側で、１回だけを検出して処理する方法を考える。 当初、タイマー付きＭａｐみたいなことを考えたが、マップに格納した要素 １つ１つにタイマースレッドを作成するのは危険だ。 そこで、Key と時刻のマップを内部で持ち、SortedMap#headMap を利用して remove の実行、チェックしての任意の処理実行を考えた。 public interface CometMapper&lt;K,V&gt;{ public void checkIn(K key,V value); } -------------------------…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2010%2F02%2F19%2F234345&quot; title=&quot;CometHashMap　という名前が良いか？ - Oboe吹きプログラマの黙示録&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>2010-02-19 23:43:45</published>
  <title>CometHashMap　という名前が良いか？</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2010/02/19/234345</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
