Class EagerBundleProvider
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.AbstractBundleProvider
org.openehealth.ipf.commons.ihe.fhir.EagerBundleProvider
- All Implemented Interfaces:
IBundleProvider
Simple Bundle provider that fetches ALL results and caches them as soon as one
of
size()
or getResources(int, int)
is called.
Note: instances of this class is neither thread-safe nor can they be reused across requests
-
Constructor Summary
ConstructorDescriptionEagerBundleProvider
(RequestConsumer consumer, boolean sort, Object payload, Map<String, Object> headers) EagerBundleProvider
(RequestConsumer consumer, Object payload, Map<String, Object> headers) -
Method Summary
Methods inherited from class org.openehealth.ipf.commons.ihe.fhir.AbstractBundleProvider
getConsumer, getHeaders, getPayload, getPublished, getUuid, obtainResources, preferredPageSize, sortIfApplicable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.api.server.IBundleProvider
getAllResourceIds, getAllResources, getCurrentPageId, getCurrentPageOffset, getCurrentPageSize, getNextPageId, getPreviousPageId, getResources, isEmpty, sizeOrThrowNpe
-
Constructor Details
-
EagerBundleProvider
-
EagerBundleProvider
public EagerBundleProvider(RequestConsumer consumer, boolean sort, Object payload, Map<String, Object> headers)
-
-
Method Details
-
getResources
-
size
-