public class L3CacheRepositoryDecorator extends AbstractRepositoryDecorator<Entity>
L3Cache based on a Query
if RepositoryCapability.CACHEABLE.
Delegates to the underlying Repository
| Constructor and Description |
|---|
L3CacheRepositoryDecorator(Repository<Entity> delegateRepository,
L3Cache l3Cache,
TransactionInformation transactionInformation) |
| Modifier and Type | Method and Description |
|---|---|
Stream<Entity> |
findAll(Query<Entity> query)
Retrieves a
List of identifiers from the L3Cache if the
Repository is cacheable and the Query is
limited (i.e. |
Entity |
findOne(Query<Entity> query)
Retrieves a single identifier from the
L3Cache if the
Repository is cacheable and hasn't been touched in this transaction. |
add, add, aggregate, close, count, count, delegate, delete, delete, deleteAll, deleteAll, deleteById, findAll, findAll, findOneById, findOneById, forEachBatched, getCapabilities, getEntityType, getName, getQueryOperators, iterator, query, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachBatched, getExistingIDs, upsertBatchforEach, spliteratorpublic L3CacheRepositoryDecorator(Repository<Entity> delegateRepository, L3Cache l3Cache, TransactionInformation transactionInformation)
public Stream<Entity> findAll(Query<Entity> query)
List of identifiers from the L3Cache if the
Repository is cacheable and the Query is
limited (i.e. contains a pageSize) between 0 and MAX_PAGE_SIZEfindAll in interface Repository<Entity>findAll in class AbstractRepositoryDecorator<Entity>query - The QueryEntitypublic Entity findOne(Query<Entity> query)
L3Cache if the
Repository is cacheable and hasn't been touched in this transaction.findOne in interface Repository<Entity>findOne in class AbstractRepositoryDecorator<Entity>query - The QueryEntity or null if not foundCopyright © 2018 Pivotal Software, Inc.. All rights reserved.