Class StreamingActor
- java.lang.Object
-
- akka.actor.AbstractActor
-
- akka.actor.AbstractActorWithTimers
-
- org.eclipse.ditto.services.gateway.streaming.actors.StreamingActor
-
- All Implemented Interfaces:
akka.actor.Actor,akka.actor.Timers,ModifyConfigBehavior,RetrieveConfigBehavior
public final class StreamingActor extends akka.actor.AbstractActorWithTimers implements RetrieveConfigBehavior, ModifyConfigBehavior
Parent Actor forStreamingSessionActors delegating most of the messages to a specific session. Manages WebSocket configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamingActor.ControlControl messages to send in the same actor system.
-
Field Summary
Fields Modifier and Type Field Description static StringACTOR_NAMEThe name of this Actor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description akka.actor.AbstractActor.ReceivecreateReceive()com.typesafe.config.ConfiggetConfig()static akka.actor.Propsprops(DittoProtocolSub dittoProtocolSub, akka.actor.ActorRef commandRouter, JwtAuthenticationFactory jwtAuthenticationFactory, org.eclipse.ditto.services.gateway.util.config.streaming.StreamingConfig streamingConfig, org.eclipse.ditto.protocoladapter.HeaderTranslator headerTranslator, akka.actor.ActorRef pubSubMediator, akka.actor.ActorRef conciergeForwarder)Creates Akka configuration object Props for this StreamingActor.com.typesafe.config.ConfigsetConfig(com.typesafe.config.Config config)akka.actor.SupervisorStrategysupervisorStrategy()-
Methods inherited from class akka.actor.AbstractActorWithTimers
akka$actor$Timers$_setter_$akka$actor$Timers$$_timers_$eq, akka$actor$Timers$$_timers, aroundPostStop, aroundPreRestart, aroundReceive, getTimers, timers
-
Methods inherited from class akka.actor.AbstractActor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPreStart, context, emptyBehavior, getContext, getSelf, getSender, postRestart, postStop, preRestart, preRestart, preStart, receive, receiveBuilder, self, sender, unhandled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.Actor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPreStart, context, postRestart, postStop, preRestart, preStart, receive, self, sender, unhandled
-
Methods inherited from interface org.eclipse.ditto.services.utils.akka.actors.ModifyConfigBehavior
modifyConfigBehavior
-
Methods inherited from interface org.eclipse.ditto.services.utils.akka.actors.RetrieveConfigBehavior
retrieveConfigBehavior
-
-
-
-
Field Detail
-
ACTOR_NAME
public static final String ACTOR_NAME
The name of this Actor.- See Also:
- Constant Field Values
-
-
Method Detail
-
props
public static akka.actor.Props props(DittoProtocolSub dittoProtocolSub, akka.actor.ActorRef commandRouter, JwtAuthenticationFactory jwtAuthenticationFactory, org.eclipse.ditto.services.gateway.util.config.streaming.StreamingConfig streamingConfig, org.eclipse.ditto.protocoladapter.HeaderTranslator headerTranslator, akka.actor.ActorRef pubSubMediator, akka.actor.ActorRef conciergeForwarder)
Creates Akka configuration object Props for this StreamingActor.- Parameters:
dittoProtocolSub- the Ditto protocol sub access.commandRouter- the command router used to send signals into the cluster.streamingConfig- the streaming config.headerTranslator- translates headers from external sources or to external sources.- Returns:
- the Akka configuration Props object.
-
supervisorStrategy
public akka.actor.SupervisorStrategy supervisorStrategy()
- Specified by:
supervisorStrategyin interfaceakka.actor.Actor- Overrides:
supervisorStrategyin classakka.actor.AbstractActor
-
createReceive
public akka.actor.AbstractActor.Receive createReceive()
- Specified by:
createReceivein classakka.actor.AbstractActor
-
getConfig
public com.typesafe.config.Config getConfig()
- Specified by:
getConfigin interfaceRetrieveConfigBehavior
-
setConfig
public com.typesafe.config.Config setConfig(com.typesafe.config.Config config)
- Specified by:
setConfigin interfaceModifyConfigBehavior
-
-