本文整理匯總了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);
}
示例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);
}
示例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);
}
示例4: FriendEventProcessor
import com.lightbend.lagom.javadsl.persistence.cassandra.CassandraReadSide; //導入依賴的package包/類
@Inject
public FriendEventProcessor(CassandraSession session, CassandraReadSide readSide) {
this.session = session;
this.readSide = readSide;
}
示例5: ChirpTimelineEventReadSideProcessor
import com.lightbend.lagom.javadsl.persistence.cassandra.CassandraReadSide; //導入依賴的package包/類
@Inject
private ChirpTimelineEventReadSideProcessor(CassandraSession db, CassandraReadSide readSide) {
this.db = db;
this.readSide = readSide;
}