set fetch size.
This commit is contained in:
@@ -49,6 +49,10 @@ public class FhirServerConfigCommon {
|
|||||||
retVal.setAutoCreatePlaceholderReferenceTargets(allowPlaceholderReferences);
|
retVal.setAutoCreatePlaceholderReferenceTargets(allowPlaceholderReferences);
|
||||||
ourLog.info("Server configured to " + (allowPlaceholderReferences ? "allow" : "deny") + " placeholder references");
|
ourLog.info("Server configured to " + (allowPlaceholderReferences ? "allow" : "deny") + " placeholder references");
|
||||||
|
|
||||||
|
Integer maxFetchSize = HapiProperties.getMaximumFetchSize();
|
||||||
|
retVal.setFetchSizeDefaultMaximum(maxFetchSize);
|
||||||
|
ourLog.info("Server configured to have a maximum fetch size of " + (maxFetchSize == Integer.MAX_VALUE? "'unlimited'": maxFetchSize));
|
||||||
|
|
||||||
// You can enable these if you want to support Subscriptions from your server
|
// You can enable these if you want to support Subscriptions from your server
|
||||||
if (HapiProperties.getSubscriptionRestHookEnabled()) {
|
if (HapiProperties.getSubscriptionRestHookEnabled()) {
|
||||||
ourLog.info("Enabling REST-hook subscriptions");
|
ourLog.info("Enabling REST-hook subscriptions");
|
||||||
@@ -82,7 +86,7 @@ public class FhirServerConfigCommon {
|
|||||||
retVal.setUrl(HapiProperties.getDataSourceUrl());
|
retVal.setUrl(HapiProperties.getDataSourceUrl());
|
||||||
retVal.setUsername(HapiProperties.getDataSourceUsername());
|
retVal.setUsername(HapiProperties.getDataSourceUsername());
|
||||||
retVal.setPassword(HapiProperties.getDataSourcePassword());
|
retVal.setPassword(HapiProperties.getDataSourcePassword());
|
||||||
retVal.setMaxTotal(HapiProperties.getDataSourceMaxPoolSize());
|
retVal.setMaxTotal(HapiProperties.getDataSourceMaxPoolSize());
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user