当前位置: 首页>>代码示例>>Java>>正文


Java CassandraReadSide类代码示例

本文整理汇总了Java中com.lightbend.lagom.javadsl.persistence.cassandra.CassandraReadSide的典型用法代码示例。如果您正苦于以下问题:Java CassandraReadSide类的具体用法?Java CassandraReadSide怎么用?Java CassandraReadSide使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CassandraReadSide类属于com.lightbend.lagom.javadsl.persistence.cassandra包,在下文中一共展示了CassandraReadSide类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: RegistrationServiceImpl

import com.lightbend.lagom.javadsl.persistence.cassandra.CassandraReadSide; //导入依赖的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: FriendServiceImpl

import com.lightbend.lagom.javadsl.persistence.cassandra.CassandraReadSide; //导入依赖的package包/类
@Inject
public FriendServiceImpl(PersistentEntityRegistry persistentEntities, CassandraReadSide readSide,
    CassandraSession db) {
  this.persistentEntities = persistentEntities;
  this.db = db;

  persistentEntities.register(FriendEntity.class);
  readSide.register(FriendEventProcessor.class);
}
 
开发者ID:negokaz,项目名称:lagom-hands-on-development,代码行数:10,代码来源:FriendServiceImpl.java

示例3: FavoriteServiceImpl

import com.lightbend.lagom.javadsl.persistence.cassandra.CassandraReadSide; //导入依赖的package包/类
@Inject
public FavoriteServiceImpl(PersistentEntityRegistry persistentEntities,
                           CassandraReadSide readSide,
                           CassandraSession db) {
    this.persistentEntities = persistentEntities;
    this.persistentEntities.register(FavoriteEntity.class);
    this.db = db;

    readSide.register(FavoriteEventProcessor.class);
}
 
开发者ID:negokaz,项目名称:lagom-hands-on-development,代码行数:11,代码来源:FavoriteServiceImpl.java

示例4: FriendEventProcessor

import com.lightbend.lagom.javadsl.persistence.cassandra.CassandraReadSide; //导入依赖的package包/类
@Inject
public FriendEventProcessor(CassandraSession session, CassandraReadSide readSide) {
  this.session = session;
  this.readSide = readSide;
}
 
开发者ID:lagom,项目名称:lagom-java-chirper-example,代码行数:6,代码来源:FriendEventProcessor.java

示例5: ChirpTimelineEventReadSideProcessor

import com.lightbend.lagom.javadsl.persistence.cassandra.CassandraReadSide; //导入依赖的package包/类
@Inject
private ChirpTimelineEventReadSideProcessor(CassandraSession db, CassandraReadSide readSide) {
    this.db = db;
    this.readSide = readSide;
}
 
开发者ID:lagom,项目名称:lagom-java-chirper-example,代码行数:6,代码来源:ChirpRepositoryImpl.java


注:本文中的com.lightbend.lagom.javadsl.persistence.cassandra.CassandraReadSide类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。