Class SubscriptionActor
- java.lang.Object
-
- akka.actor.AbstractActor
-
- akka.actor.AbstractActorWithTimers
-
- org.eclipse.ditto.services.utils.akka.actors.AbstractActorWithStashWithTimers
-
- org.eclipse.ditto.services.utils.search.SubscriptionActor
-
- All Implemented Interfaces:
akka.actor.Actor,akka.actor.Stash,akka.actor.StashSupport,akka.actor.Timers,akka.actor.UnrestrictedStash,akka.dispatch.RequiresMessageQueue<akka.dispatch.DequeBasedMessageQueueSemantics>
public final class SubscriptionActor extends org.eclipse.ditto.services.utils.akka.actors.AbstractActorWithStashWithTimersActor that translates subscription commands into stream operations and stream signals into subscription events.- Since:
- 1.1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.reactivestreams.Subscriber<org.eclipse.ditto.json.JsonArray>asSubscriber(akka.actor.ActorRef subscriptionActor)Wrap a subscription actor as a reactive stream subscriber.akka.actor.AbstractActor.ReceivecreateReceive()voidpostStop()static akka.actor.Propsprops(Duration idleTimeout, akka.actor.ActorRef sender, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)Create Props object for the SubscriptionActor.-
Methods inherited from class org.eclipse.ditto.services.utils.akka.actors.AbstractActorWithStashWithTimers
akka$actor$StashSupport$_setter_$akka$actor$StashSupport$$capacity_$eq, akka$actor$StashSupport$_setter_$mailbox_$eq, akka$actor$StashSupport$$capacity, akka$actor$StashSupport$$theStash, akka$actor$StashSupport$$theStash_$eq, clearStash, mailbox, prepend, preRestart, stash, unstash, unstashAll, unstashAll
-
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, preRestart, preStart, receive, receiveBuilder, self, sender, supervisorStrategy, unhandled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
props
public static akka.actor.Props props(Duration idleTimeout, akka.actor.ActorRef sender, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Create Props object for the SubscriptionActor.- Parameters:
idleTimeout- maximum lifetime while idlingsender- sender of the command that created this actor.dittoHeaders- headers of the command that created this actor.- Returns:
- Props for this actor.
-
asSubscriber
public static org.reactivestreams.Subscriber<org.eclipse.ditto.json.JsonArray> asSubscriber(akka.actor.ActorRef subscriptionActor)
Wrap a subscription actor as a reactive stream subscriber.- Parameters:
subscriptionActor- reference to the subscription actor.- Returns:
- the actor presented as a reactive stream subscriber.
-
postStop
public void postStop()
- Specified by:
postStopin interfaceakka.actor.Actor- Specified by:
postStopin interfaceakka.actor.UnrestrictedStash- Overrides:
postStopin classorg.eclipse.ditto.services.utils.akka.actors.AbstractActorWithStashWithTimers
-
createReceive
public akka.actor.AbstractActor.Receive createReceive()
- Specified by:
createReceivein classakka.actor.AbstractActor
-
-