Package org.apache.pekko.cluster.pubsub
Class DistributedPubSubMediator.Internal$
- java.lang.Object
-
- org.apache.pekko.cluster.pubsub.DistributedPubSubMediator.Internal$
-
- Enclosing class:
- DistributedPubSubMediator
public static class DistributedPubSubMediator.Internal$ extends java.lang.Object
INTERNAL API
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static DistributedPubSubMediator.Internal$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Internal$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
encName(java.lang.String s)
java.lang.String
mkKey(ActorPath path)
java.lang.String
mkKey(ActorRef ref)
scala.Function1<java.lang.Object,java.lang.Object>
wrapIfNeeded()
Mediator usespekko.routing.Router
to send messages to multiple destinations, Router in general unwraps messages frompekko.routing.RouterEnvelope
and sends the contents topekko.routing.Routee
s.
-
-
-
Field Detail
-
MODULE$
public static final DistributedPubSubMediator.Internal$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
encName
public java.lang.String encName(java.lang.String s)
-
mkKey
public java.lang.String mkKey(ActorRef ref)
-
mkKey
public java.lang.String mkKey(ActorPath path)
-
wrapIfNeeded
public scala.Function1<java.lang.Object,java.lang.Object> wrapIfNeeded()
Mediator usespekko.routing.Router
to send messages to multiple destinations, Router in general unwraps messages frompekko.routing.RouterEnvelope
and sends the contents topekko.routing.Routee
s.Using mediator services should not have an undesired effect of unwrapping messages out of
pekko.routing.RouterEnvelope
. For this reason user messages are wrapped inDistributedPubSubMediator.Internal$.MediatorRouterEnvelope
which will be unwrapped by thepekko.routing.Router
leaving original user message.
-
-