本文整理汇总了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);
}
示例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;
}
示例3: ChirpTopicImpl
import com.lightbend.lagom.javadsl.pubsub.PubSubRegistry; //导入依赖的package包/类
@Inject
public ChirpTopicImpl(PubSubRegistry pubSub) {
this.pubSub = pubSub;
}