@ Programmatic public List < PublishedEvent > findQueued ( ) { return repositoryService . allMatches ( new QueryDefault <> ( PublishedEvent . class , "findByStateOrderByTimestamp" , "state" , PublishedEvent . State . QUEUED ) ) ; }
region > findQueued