@Override
    public Stream<? extends CasEvent> load() {
        return this.mongoTemplate.stream(new Query(), CasEvent.class, this.collectionName);
    }
This is {@link MongoDbCasEventRepository} that stores event data into a mongodb database.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-events-mongo/src/main/java/org/apereo/cas/support/events/mongo/MongoDbCasEventRepository.java