Skip to content

Commit

Permalink
k8s 向けヘルスチェッカーを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
kuramapommel committed Nov 23, 2024
1 parent a3a450b commit 8284ae1
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.kuramapommel.til_akka_typed

import akka.actor.typed.ActorSystem
import scala.concurrent.Future

/**
* k8s 向けヘルスチェッカー
* 参照:https://doc.akka.io/libraries/akka-management/current/healthchecks.html#defining-a-health-check
*
* @param system
* アクターシステム
*/
final case class HealthChecker(system: ActorSystem[?]) extends (() => Future[Boolean]):

/** 稼働中 */
override def apply(): Future[Boolean] =
Future.successful(true)

0 comments on commit 8284ae1

Please sign in to comment.