Interface CurrentPersistenceIdsForEntityTypeQuery
-
public interface CurrentPersistenceIdsForEntityTypeQueryA plugin may optionally support this query by implementing this trait.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Source<java.lang.String,NotUsed>currentPersistenceIds(java.lang.String entityType, java.util.Optional<java.lang.String> afterId, long limit)Get the current persistence ids for a given entity type.
-
-
-
Method Detail
-
currentPersistenceIds
Source<java.lang.String,NotUsed> currentPersistenceIds(java.lang.String entityType, java.util.Optional<java.lang.String> afterId, long limit)
Get the current persistence ids for a given entity type.The persistenceIds must start with the entity type followed by default separator ("|") from
PersistenceId.- Parameters:
entityType- The entity type name.afterId- The ID to start returning results from, or empty to return all ids. This should be an id returned from a previous invocation of this command. Callers should not assume that ids are returned in sorted order.limit- The maximum results to return. Use Long.MAX_VALUE to return all results. Must be greater than zero.- Returns:
- A source containing all the persistence ids, limited as specified.
-
-