Class AlarmRefreshActorFactory


  • public class AlarmRefreshActorFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static akka.actor.typed.ActorRef<AutoRefreshSeverityMessage> jMake​(IAlarmService alarmService, java.time.Duration refreshInterval, akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)
      Java API - factory to create AlarmRefreshActor for auto-refreshing alarm severity
      static akka.actor.typed.ActorRef<AutoRefreshSeverityMessage> jMake​(java.util.function.BiFunction<Key.AlarmKey,​AlarmSeverity,​java.util.concurrent.CompletableFuture<akka.Done>> setSeverity, java.time.Duration refreshInterval, akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)
      Java API - factory to create AlarmRefreshActor for auto-refreshing alarm severity
      static akka.actor.typed.ActorRef<AutoRefreshSeverityMessage> make​(csw.alarm.api.scaladsl.AlarmService alarmService, scala.concurrent.duration.FiniteDuration refreshInterval, akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)
      Scala API - factory to create AlarmRefreshActor for auto-refreshing alarm severity
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlarmRefreshActorFactory

        public AlarmRefreshActorFactory()
    • Method Detail

      • make

        public static akka.actor.typed.ActorRef<AutoRefreshSeverityMessage> make​(csw.alarm.api.scaladsl.AlarmService alarmService,
                                                                                 scala.concurrent.duration.FiniteDuration refreshInterval,
                                                                                 akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)
        Scala API - factory to create AlarmRefreshActor for auto-refreshing alarm severity

        Parameters:
        alarmService - instance of alarm service or custom implementation of AlarmService, you can use lambda expression here
        refreshInterval - interval after which alarm will be refreshed
        actorSystem - actorSystem used for creating actor
        Returns:
        ActorRef which accepts AutoRefreshSeverityMessage
      • jMake

        public static akka.actor.typed.ActorRef<AutoRefreshSeverityMessage> jMake​(IAlarmService alarmService,
                                                                                  java.time.Duration refreshInterval,
                                                                                  akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)
        Java API - factory to create AlarmRefreshActor for auto-refreshing alarm severity

        Parameters:
        alarmService - instance of alarm service or custom implementation of AlarmService, you can use lambda expression here
        refreshInterval - interval after which alarm will be refreshed
        actorSystem - actorSystem used for creating actor
        Returns:
        ActorRef which accepts AutoRefreshSeverityMessage
      • jMake

        public static akka.actor.typed.ActorRef<AutoRefreshSeverityMessage> jMake​(java.util.function.BiFunction<Key.AlarmKey,​AlarmSeverity,​java.util.concurrent.CompletableFuture<akka.Done>> setSeverity,
                                                                                  java.time.Duration refreshInterval,
                                                                                  akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)
        Java API - factory to create AlarmRefreshActor for auto-refreshing alarm severity

        Parameters:
        setSeverity - function responsible for setting severity of alarm
        refreshInterval - interval after which alarm will be refreshed
        actorSystem - actorSystem used for creating actor
        Returns:
        ActorRef which accepts AutoRefreshSeverityMessage