public interface EntityDAO
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EntityDAO.Entity
Interface for all entity types stored in the lease table.
|
static class |
EntityDAO.EntityScanList
Holds the scan result for a single entity type: the successfully deserialized entities
and the partition keys of items that failed deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
Map<EntityType,EntityDAO.EntityScanList> |
scanAllEntities()
Scan all entities from the lease table and group them by their
EntityType. |
Map<EntityType,EntityDAO.EntityScanList> |
scanEntities(EntityType... entityTypes)
Scan entities from the lease table filtered to only the specified entity types.
|
default void |
shutdown()
Shuts down any resources held by this DAO, such as thread pools used for parallel scans.
|
Map<EntityType,EntityDAO.EntityScanList> scanAllEntities() throws DependencyException, InvalidStateException, ProvisionedThroughputException
EntityType.
Records without an entityType attribute are treated as EntityType.LEASE.EntityDAO.EntityScanList containing entities and deserialization failuresDependencyException - if DynamoDB scan fails in an unexpected wayInvalidStateException - if the table does not existProvisionedThroughputException - if DynamoDB scan fails due to lack of capacityMap<EntityType,EntityDAO.EntityScanList> scanEntities(EntityType... entityTypes) throws DependencyException, InvalidStateException, ProvisionedThroughputException
entityTypes - the set of entity types to include in the resultEntityDAO.EntityScanList containing entities and
deserialization failures per typeDependencyException - if DynamoDB scan fails in an unexpected wayInvalidStateException - if the table does not existProvisionedThroughputException - if DynamoDB scan fails due to lack of capacitydefault void shutdown()
Copyright © 2026. All rights reserved.