Package csw.alarm.client
Class AlarmRefreshActorFactory$
- java.lang.Object
-
- csw.alarm.client.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.
-
Constructor Summary
Constructors Constructor Description AlarmRefreshActorFactory$()
-
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 severityakka.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 severityakka.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
-
-
-
Field Detail
-
MODULE$
public static final AlarmRefreshActorFactory$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
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 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 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 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
-
-