use of io.spine.server.event.EventFilter in project core-java by SpineEventEngine.
the class ProjectionRepository method getEventFilters.
/**
* Obtains event filters for event classes handled by projections of this repository.
*/
private Set<EventFilter> getEventFilters() {
final ImmutableSet.Builder<EventFilter> builder = ImmutableSet.builder();
final Set<EventClass> eventClasses = getMessageClasses();
for (EventClass eventClass : eventClasses) {
final String typeName = TypeName.of(eventClass.value()).value();
builder.add(EventFilter.newBuilder().setEventType(typeName).build());
}
return builder.build();
}
Aggregations