mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-07 05:28:21 +00:00
Rename queue to channel
This commit is contained in:
parent
2cf48eb9b9
commit
46251af81a
@ -55,7 +55,7 @@ public class EmpiBatchSvcImpl implements IEmpiBatchSvc {
|
||||
private EmpiSearchParamSvc myEmpiSearchParamSvc;
|
||||
|
||||
@Autowired
|
||||
private IEmpiChannelSubmitterSvc myEmpiQueueSubmitterSvc;
|
||||
private IEmpiChannelSubmitterSvc myEmpiChannelSubmitterSvc;
|
||||
|
||||
private static final int BUFFER_SIZE = 100;
|
||||
|
||||
@ -121,7 +121,7 @@ public class EmpiBatchSvcImpl implements IEmpiBatchSvc {
|
||||
List<IBaseResource> resourcesToSubmit = new ArrayList<>();
|
||||
theSearchBuilder.loadResourcesByPid(thePidsToSubmit, Collections.emptyList(), resourcesToSubmit, false, null);
|
||||
resourcesToSubmit
|
||||
.forEach(resource -> myEmpiQueueSubmitterSvc.submitResourceToEmpiChannel(resource));
|
||||
.forEach(resource -> myEmpiChannelSubmitterSvc.submitResourceToEmpiChannel(resource));
|
||||
return resourcesToSubmit.size();
|
||||
}
|
||||
|
||||
@ -143,7 +143,7 @@ public class EmpiBatchSvcImpl implements IEmpiBatchSvc {
|
||||
resolveTargetTypeOrThrowException(theId.getResourceType());
|
||||
IFhirResourceDao resourceDao = myDaoRegistry.getResourceDao(theId.getResourceType());
|
||||
IBaseResource read = resourceDao.read(theId);
|
||||
myEmpiQueueSubmitterSvc.submitResourceToEmpiChannel(read);
|
||||
myEmpiChannelSubmitterSvc.submitResourceToEmpiChannel(read);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ import org.springframework.messaging.MessageChannel;
|
||||
import static ca.uhn.fhir.empi.api.IEmpiSettings.EMPI_CHANNEL_NAME;
|
||||
|
||||
/**
|
||||
* This class is responsible for manual submissions of {@link IAnyResource} resources onto the Empi Queue.
|
||||
* This class is responsible for manual submissions of {@link IAnyResource} resources onto the Empi Channel.
|
||||
*/
|
||||
public class EmpiChannelSubmitterSvcImpl implements IEmpiChannelSubmitterSvc {
|
||||
private MessageChannel myEmpiChannelProducer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user