Class SpringCachePagingProvider

java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.SpringCachePagingProvider
All Implemented Interfaces:
IPagingProvider

public class SpringCachePagingProvider extends Object implements IPagingProvider
Paging provider that uses a Spring cache abstraction to store IBundleProvider instances. The PagingProvider is used whenever there are more results than the client has requested.

Note that IBundleProvider is not serializable, so if isDistributed() returns true, only the bundles are stored. When the result list is retrieved a new instance of SimpleBundleProvider is created and returned instead. This does not work with LazyBundleProvider as this class relies on a completely initialized result list.

Eviction of paging results is done by appropriately configuring the fhirPagingCache cache

Since:
3.2
Author:
Christian Ohr