Class AlarmRefreshActorFactory$


  • public class AlarmRefreshActorFactory$
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static AlarmRefreshActorFactory$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      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
      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
    • Field Detail

      • MODULE$

        public static final AlarmRefreshActorFactory$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • AlarmRefreshActorFactory$

        public AlarmRefreshActorFactory$()
    • Method Detail

      • make

        public 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 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 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