Class DistributedPubSubMediator.Internal$

  • Enclosing class:
    DistributedPubSubMediator

    public static class DistributedPubSubMediator.Internal$
    extends java.lang.Object
    INTERNAL API
    • Constructor Detail

      • Internal$

        public Internal$()
    • 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 uses pekko.routing.Router to send messages to multiple destinations, Router in general unwraps messages from pekko.routing.RouterEnvelope and sends the contents to pekko.routing.Routees.

        Using mediator services should not have an undesired effect of unwrapping messages out of pekko.routing.RouterEnvelope. For this reason user messages are wrapped in DistributedPubSubMediator.Internal$.MediatorRouterEnvelope which will be unwrapped by the pekko.routing.Router leaving original user message.