public final class CommandSubscriber
extends akka.stream.actor.AbstractActorSubscriber
Commands by forwarding it to an passed in delegateActor applying backpressure. Backpressure can be and is only applied for commands requiring a response:
DittoHeaders.isResponseRequired().
akka.actor.AbstractActor.ActorContext, akka.actor.AbstractActor.Receive| Modifier and Type | Method and Description |
|---|---|
akka.actor.AbstractActor.Receive |
createReceive() |
static akka.actor.Props |
props(akka.actor.ActorRef delegateActor,
int backpressureQueueSize,
akka.event.EventStream eventStream)
Creates Akka configuration object Props for this CommandSubscriber.
|
akka.stream.actor.RequestStrategy |
requestStrategy() |
akka$stream$actor$ActorSubscriber$_setter_$akka$stream$actor$ActorSubscriber$$state_$eq, akka$stream$actor$ActorSubscriber$$_canceled_$eq, akka$stream$actor$ActorSubscriber$$_canceled, akka$stream$actor$ActorSubscriber$$requested_$eq, akka$stream$actor$ActorSubscriber$$requested, akka$stream$actor$ActorSubscriber$$state, akka$stream$actor$ActorSubscriber$$subscription_$eq, akka$stream$actor$ActorSubscriber$$subscription, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, cancel, canceled, create, remainingRequested, requestakka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, context, emptyBehavior, getContext, getSelf, getSender, postRestart, postStop, preRestart, preRestart, preStart, receive, receiveBuilder, self, sender, supervisorStrategy, unhandledpublic static akka.actor.Props props(akka.actor.ActorRef delegateActor,
int backpressureQueueSize,
akka.event.EventStream eventStream)
delegateActor - the ActorRef of the Actor to which to forward Commands.backpressureQueueSize - the max queue size of how many inflight commands a single producer can have.eventStream - used to subscribe to ResponsePublished eventspublic akka.actor.AbstractActor.Receive createReceive()
createReceive in class akka.actor.AbstractActorpublic akka.stream.actor.RequestStrategy requestStrategy()
Copyright © 2017–2018 Eclipse Foundation. All rights reserved.