Package com.ibm.fhir.bucket.scanner
Class ResourceHandler
- java.lang.Object
 - 
- com.ibm.fhir.bucket.scanner.ResourceHandler
 
 
- 
- All Implemented Interfaces:
 IResourceHandler
public class ResourceHandler extends Object implements IResourceHandler
Calls the FHIR REST API to create resources, supported by a thread pool 
- 
- 
Constructor Summary
Constructors Constructor Description ResourceHandler(ExecutorService commonPool, int maxConcurrentFhirRequests, IResourceEntryProcessor rep)Public constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprocess(ResourceEntry entry)Add the resource entry to the thread-pool for processing, subject to the rate limiting we have to make sure memory consumption is kept in checkvoidsignalStop()Tell the ResourceHandler to shut down processingvoidwaitForStop()Shut down all resource processing 
 - 
 
- 
- 
Constructor Detail
- 
ResourceHandler
public ResourceHandler(ExecutorService commonPool, int maxConcurrentFhirRequests, IResourceEntryProcessor rep)
Public constructor- Parameters:
 poolSize-
 
 - 
 
- 
Method Detail
- 
signalStop
public void signalStop()
Tell the ResourceHandler to shut down processing 
- 
waitForStop
public void waitForStop()
Shut down all resource processing 
- 
process
public boolean process(ResourceEntry entry)
Description copied from interface:IResourceHandlerAdd the resource entry to the thread-pool for processing, subject to the rate limiting we have to make sure memory consumption is kept in check- Specified by:
 processin interfaceIResourceHandler- Returns:
 
 
 - 
 
 -