當前位置: 首頁>>代碼示例>>Java>>正文


Java PubSubRegistry類代碼示例

本文整理匯總了Java中com.lightbend.lagom.javadsl.pubsub.PubSubRegistry的典型用法代碼示例。如果您正苦於以下問題:Java PubSubRegistry類的具體用法?Java PubSubRegistry怎麽用?Java PubSubRegistry使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PubSubRegistry類屬於com.lightbend.lagom.javadsl.pubsub包,在下文中一共展示了PubSubRegistry類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: RegistrationServiceImpl

import com.lightbend.lagom.javadsl.pubsub.PubSubRegistry; //導入依賴的package包/類
/**
 * Constructor with the relevant infrastructure elements injected.
 *
 * @param topics
 * @param persistentEntityRegistry
 * @param readSide
 * @param db
 */
@Inject
public RegistrationServiceImpl(PubSubRegistry topics, PersistentEntityRegistry persistentEntityRegistry, CassandraReadSide readSide,
                               CassandraSession db) {
    this.persistentEntityRegistry = persistentEntityRegistry;
    this.topics = topics;
    this.db = db;
    persistentEntityRegistry.register(CargoEntity.class);
    readSide.register(CargoEventProcessor.class);
}
 
開發者ID:lagom,項目名稱:activator-lagom-cargotracker,代碼行數:18,代碼來源:RegistrationServiceImpl.java

示例2: ChirpServiceImpl

import com.lightbend.lagom.javadsl.pubsub.PubSubRegistry; //導入依賴的package包/類
@Inject
public ChirpServiceImpl(PubSubRegistry topics, CassandraSession db, FavoriteService favoriteService) {
  this.topics = topics;
  this.db = db;
  createTable();
  this.favoriteService = favoriteService;
}
 
開發者ID:negokaz,項目名稱:lagom-hands-on-development,代碼行數:8,代碼來源:ChirpServiceImpl.java

示例3: ChirpTopicImpl

import com.lightbend.lagom.javadsl.pubsub.PubSubRegistry; //導入依賴的package包/類
@Inject
public ChirpTopicImpl(PubSubRegistry pubSub) {
    this.pubSub = pubSub;
}
 
開發者ID:lagom,項目名稱:lagom-java-chirper-example,代碼行數:5,代碼來源:ChirpTopicImpl.java


注:本文中的com.lightbend.lagom.javadsl.pubsub.PubSubRegistry類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。