Java Code Examples for akka.actor.ActorSystem#actorSelection()
The following examples show how to use
akka.actor.ActorSystem#actorSelection() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AkkaActorITest.java From java-specialagent with Apache License 2.0 | 5 votes |
private static void testTell(final ActorSystem system) throws Exception { final ActorRef actorRef = system.actorOf(TestActor.props(false), "tell"); final CountDownLatch latch = TestUtil.initExpectedSpanLatch(4); actorRef.tell("tell", ActorRef.noSender()); final ActorSelection actorSelection = system.actorSelection(actorRef.path()); actorSelection.tell("tell-selection", ActorRef.noSender()); TestUtil.checkSpan(latch, new ComponentSpanCount("java-akka", 4)); }
Example 2
Source File: GatewayByRoundTripSignalEnrichmentProvider.java From ditto with Eclipse Public License 2.0 | 5 votes |
/** * Instantiate this provider. Called by reflection. * * @param actorSystem The actor system for which this provider is instantiated. * @param signalEnrichmentConfig Configuration for this provider. */ public GatewayByRoundTripSignalEnrichmentProvider(final ActorSystem actorSystem, final GatewaySignalEnrichmentConfig signalEnrichmentConfig) { final ActorSelection commandHandler = actorSystem.actorSelection(CONCIERGE_FORWARDER); byRoundTripSignalEnrichmentFacade = ByRoundTripSignalEnrichmentFacade.of(commandHandler, signalEnrichmentConfig.getAskTimeout()); }
Example 3
Source File: ConnectivityByRoundTripSignalEnrichmentProvider.java From ditto with Eclipse Public License 2.0 | 5 votes |
/** * Instantiate this provider. Called by reflection. * * @param actorSystem The actor system for which this provider is instantiated. * @param signalEnrichmentConfig Configuration for this provider. */ @SuppressWarnings("unused") public ConnectivityByRoundTripSignalEnrichmentProvider(final ActorSystem actorSystem, final SignalEnrichmentConfig signalEnrichmentConfig) { final ActorSelection commandHandler = actorSystem.actorSelection(CONCIERGE_FORWARDER); final SignalEnrichmentFacadeByRoundTripConfig config = DefaultSignalEnrichmentFacadeByRoundTripConfig.of(signalEnrichmentConfig.getProviderConfig()); byRoundTripSignalEnrichmentFacade = ByRoundTripSignalEnrichmentFacade.of(commandHandler, config.getAskTimeout()); }
Example 4
Source File: GatewayHttpReadinessCheck.java From ditto with Eclipse Public License 2.0 | 4 votes |
public GatewayHttpReadinessCheck(final ActorSystem system) { rootActor = system.actorSelection("/user/gatewayRoot"); }