Tabnine Logo
DistributedPubSubMediator$Put.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
akka.cluster.pubsub.DistributedPubSubMediator$Put
constructor

Best Java code snippets using akka.cluster.pubsub.DistributedPubSubMediator$Put.<init> (Showing top 10 results out of 315)

origin: eclipse/ditto

private <C extends AbstractConciergeConfigReader> ConciergeRootActor(final C configReader,
    final ActorRef pubSubMediator,
    final AbstractEnforcerActorFactory<C> authorizationProxyPropsFactory,
    final ActorMaterializer materializer) {
  requireNonNull(configReader);
  requireNonNull(pubSubMediator);
  requireNonNull(authorizationProxyPropsFactory);
  requireNonNull(materializer);
  final ActorContext context = getContext();
  final ActorRef conciergeShardRegion =
      authorizationProxyPropsFactory.startEnforcerActor(context, configReader, pubSubMediator);
  retrieveStatisticsDetailsResponseSupplier = RetrieveStatisticsDetailsResponseSupplier.of(conciergeShardRegion,
      ConciergeMessagingConstants.SHARD_REGION, log);
  final ActorRef conciergeForwarder = startChildActor(context, ConciergeForwarderActor.ACTOR_NAME,
      ConciergeForwarderActor.props(pubSubMediator, conciergeShardRegion));
  pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
  pubSubMediator.tell(new DistributedPubSubMediator.Put(conciergeForwarder), getSelf());
  startClusterSingletonActor(context, BatchSupervisorActor.ACTOR_NAME,
      BatchSupervisorActor.props(pubSubMediator, conciergeForwarder));
  final ActorRef healthCheckingActor = startHealthCheckingActor(context, configReader);
  final HttpConfigReader httpConfig = configReader.http();
  bindHttpStatusRoute(healthCheckingActor, httpConfig, materializer);
}
origin: org.eclipse.ditto/ditto-services-thingsearch-updater-actors

        " process events again"));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
origin: eclipse/ditto

        " process events again"));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
origin: eclipse/ditto

    PoliciesPersistenceStreamingActorCreator.props(config, tagsStreamingCacheSize));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
pubSubMediator.tell(new DistributedPubSubMediator.Put(persistenceStreamingActor), getSelf());
origin: eclipse/ditto

    ProxyActor.props(pubSubMediator, devOpsCommandsActor, conciergeForwarder));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
origin: eclipse/ditto

    ThingsPersistenceStreamingActorCreator.props(config, tagsStreamingCacheSize));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
pubSubMediator.tell(new DistributedPubSubMediator.Put(persistenceStreamingActor), getSelf());
origin: eclipse/ditto

private SearchRootActor(final ServiceConfigReader configReader, final ActorRef pubSubMediator,
    final ActorMaterializer materializer) {
  final Config rawConfig = configReader.getRawConfig();
  final CommandListener kamonCommandListener = rawConfig.getBoolean(ConfigKeys.MONITORING_COMMANDS_ENABLED) ?
      new KamonCommandListener(KAMON_METRICS_PREFIX) : null;
  final ConnectionPoolListener kamonConnectionPoolListener =
      rawConfig.getBoolean(ConfigKeys.MONITORING_CONNECTION_POOL_ENABLED) ?
          new KamonConnectionPoolListener(KAMON_METRICS_PREFIX) : null;
  final MongoClientWrapper mongoClientWrapper =
      MongoClientWrapper.newInstance(rawConfig, kamonCommandListener, kamonConnectionPoolListener);
  final StreamMetadataPersistence thingsSyncPersistence =
      MongoSearchSyncPersistence.initializedInstance(THINGS_SYNC_STATE_COLLECTION_NAME, mongoClientWrapper,
          materializer);
  final StreamMetadataPersistence policiesSyncPersistence =
      MongoSearchSyncPersistence.initializedInstance(POLICIES_SYNC_STATE_COLLECTION_NAME, mongoClientWrapper,
          materializer);
  final ActorRef searchActor = initializeSearchActor(configReader, mongoClientWrapper);
  final ActorRef healthCheckingActor =
      initializeHealthCheckActor(configReader, thingsSyncPersistence, policiesSyncPersistence);
  pubSubMediator.tell(new DistributedPubSubMediator.Put(searchActor), getSelf());
  createHealthCheckingActorHttpBinding(configReader.http(), healthCheckingActor, materializer);
  startChildActor(SearchUpdaterRootActor.ACTOR_NAME, SearchUpdaterRootActor.props(configReader, pubSubMediator,
      materializer, thingsSyncPersistence, policiesSyncPersistence));
}
origin: eclipse/ditto

  /**
   * Tell PubSubMediator about self so that other actors may send messages here from other cluster nodes.
   *
   * @param self ActorRef of this actor.
   * @param pubSubMediator Akka PubSub mediator.
   */
  private static void putSelfToPubSubMediator(final ActorRef self, final ActorRef pubSubMediator) {
    pubSubMediator.tell(new DistributedPubSubMediator.Put(self), self);
  }
}
origin: eclipse/ditto

private BlockedNamespacesUpdater(final BlockedNamespaces blockedNamespaces, final ActorRef pubSubMediator) {
  this.blockedNamespaces = blockedNamespaces;
  // register self for pub-sub on restart
  pubSubMediator.tell(new Put(getSelf()), getSelf());
  // subscribe to namespace-blocking commands
  pubSubMediator.tell(new DistributedPubSubMediator.Subscribe(BlockNamespace.TYPE, getSelf()), getSelf());
  pubSubMediator.tell(new DistributedPubSubMediator.Subscribe(UnblockNamespace.TYPE, getSelf()), getSelf());
}
origin: eclipse/ditto

@Override
public void preStart() {
  pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
  pubSubMediator.tell(new DistributedPubSubMediator.Subscribe(BatchExecutionFinished.TYPE, ACTOR_NAME, getSelf()),
      getSelf());
}
akka.cluster.pubsubDistributedPubSubMediator$Put<init>

Popular methods of DistributedPubSubMediator$Put

    Popular in Java

    • Running tasks concurrently on multiple threads
    • getExternalFilesDir (Context)
    • startActivity (Activity)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • LinkedList (java.util)
      Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
    • Random (java.util)
      This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
    • HttpServletRequest (javax.servlet.http)
      Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • Table (org.hibernate.mapping)
      A relational table
    • From CI to AI: The AI layer in your organization
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now