by shigemk2

当面は技術的なことしか書かない

Akka

akka 2.5.2

どうでもいいですが、play 2.6からデフォルトのサーバーエンジンにakka-httpが使われるようです Highlights26 - 2.6.x akka clusterのrememberEntitiesまわりでのバグ修正がメイン。remember entities設定が有効なときにクラスターシャーディングを使うとイ…

akka v2.4.13_2.12

テストとか増えてる Release v2.4.13_2.12 · akka/akka · GitHub よく考えたら今のバージョンはAkka 2.4.12 (Scala 2.11 and Java 8+)

schedule/scheduleonce

なんかすっかり忘れていた。schedule/scheduleonce。akkaで定期実行するやつ。 Scheduler — Akka Documentation system.scheduler().scheduleOnce(Duration.create(50, TimeUnit.MILLISECONDS), new Runnable() { @Override public void run() { testActor.t…

Props

Props is a configuration object using in creating an Actor; it is immutable, so it is thread-safe and fully shareable. val props = Props.empty val props = Props[MyActor] val props = Props(classOf[MyActor], arg1, arg2) val otherProps = prop…

fire and forget

! means “fire-and-forget”, e.g. send a message asynchronously and return immediately. Also known as tell. ドキュメントを読めばわかるかもですけど、メッセージを送ったらすぐにリターンする。もとはたぶん追尾ミサイルのfire and forgetで、ミサイル…