public class CachingPagingProvider extends Object implements ca.uhn.fhir.rest.server.IPagingProvider
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
Constructor and Description |
---|
CachingPagingProvider(org.springframework.cache.CacheManager cacheManager,
ca.uhn.fhir.context.FhirContext fhirContext) |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultPageSize() |
int |
getMaximumPageSize() |
boolean |
isDistributed() |
ca.uhn.fhir.rest.api.server.IBundleProvider |
retrieveResultList(String id) |
void |
setDefaultPageSize(int defaultPageSize) |
void |
setDistributed(boolean distributed) |
void |
setMaximumPageSize(int maximumPageSize) |
String |
storeResultList(ca.uhn.fhir.rest.api.server.IBundleProvider bundleProvider) |
public CachingPagingProvider(org.springframework.cache.CacheManager cacheManager, ca.uhn.fhir.context.FhirContext fhirContext)
public String storeResultList(ca.uhn.fhir.rest.api.server.IBundleProvider bundleProvider)
storeResultList
in interface ca.uhn.fhir.rest.server.IPagingProvider
public ca.uhn.fhir.rest.api.server.IBundleProvider retrieveResultList(String id)
retrieveResultList
in interface ca.uhn.fhir.rest.server.IPagingProvider
@Generated(value="lombok") public int getDefaultPageSize()
getDefaultPageSize
in interface ca.uhn.fhir.rest.server.IPagingProvider
@Generated(value="lombok") public void setDefaultPageSize(int defaultPageSize)
@Generated(value="lombok") public int getMaximumPageSize()
getMaximumPageSize
in interface ca.uhn.fhir.rest.server.IPagingProvider
@Generated(value="lombok") public void setMaximumPageSize(int maximumPageSize)
@Generated(value="lombok") public boolean isDistributed()
@Generated(value="lombok") public void setDistributed(boolean distributed)
Copyright © 2018 Open eHealth Foundation. All rights reserved.