Package csw.alarm.client
Class AlarmRefreshActorFactory
- java.lang.Object
-
- csw.alarm.client.AlarmRefreshActorFactory
-
public class AlarmRefreshActorFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AlarmRefreshActorFactory()
-
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 severitystatic 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 severitystatic 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
-
-
-
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 ofAlarmService
, you can use lambda expression hererefreshInterval
- interval after which alarm will be refreshedactorSystem
- actorSystem used for creating actor- Returns:
ActorRef
which acceptsAutoRefreshSeverityMessage
-
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 ofAlarmService
, you can use lambda expression hererefreshInterval
- interval after which alarm will be refreshedactorSystem
- actorSystem used for creating actor- Returns:
ActorRef
which acceptsAutoRefreshSeverityMessage
-
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 alarmrefreshInterval
- interval after which alarm will be refreshedactorSystem
- actorSystem used for creating actor- Returns:
ActorRef
which acceptsAutoRefreshSeverityMessage
-
-