Package ca.uhn.fhir.jpa.topic
Class SubscriptionTopicDispatchRequest
java.lang.Object
ca.uhn.fhir.jpa.topic.SubscriptionTopicDispatchRequest
-
Constructor Summary
ConstructorDescriptionSubscriptionTopicDispatchRequest
(String theTopicUrl, List<org.hl7.fhir.instance.model.api.IBaseResource> theResources, ISubscriptionTopicFilterMatcher theSubscriptionTopicFilterMatcher, ca.uhn.fhir.rest.api.RestOperationTypeEnum theRequestType, InMemoryMatchResult theInMemoryMatchResult, RequestPartitionId theRequestPartitionId, String theTransactionId) -
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.rest.api.RestOperationTypeEnum
List
<org.hl7.fhir.instance.model.api.IBaseResource>
-
Constructor Details
-
SubscriptionTopicDispatchRequest
public SubscriptionTopicDispatchRequest(@Nonnull String theTopicUrl, @Nonnull List<org.hl7.fhir.instance.model.api.IBaseResource> theResources, @Nonnull ISubscriptionTopicFilterMatcher theSubscriptionTopicFilterMatcher, @Nonnull ca.uhn.fhir.rest.api.RestOperationTypeEnum theRequestType, @Nullable InMemoryMatchResult theInMemoryMatchResult, @Nullable RequestPartitionId theRequestPartitionId, @Nullable String theTransactionId) - Parameters:
theTopicUrl
- Deliver to subscriptions for this topictheResources
- The list of resources to deliver. The first resource will be the primary "focus" resource per the Subscription documentation. This list should _not_ include the SubscriptionStatus. The SubscriptionStatus will be added as the first element to the delivered bundle. The reason for this is that the SubscriptionStatus needs to reference the subscription ID, which is not known until the bundle is delivered.theSubscriptionTopicFilterMatcher
- is used to match the primary "focus" resource against the subscription filterstheRequestType
- The type of request that led to this dispatch. This determines the request type of the bundle entriestheInMemoryMatchResult
- Information about the match event that led to this dispatch that is sent to SUBSCRIPTION_RESOURCE_MATCHEDtheRequestPartitionId
- The request partitions of the request, if any. This is used by subscriptions that need to perform repository operations as a part of their delivery. Those repository operations will be performed on the supplied request partitionstheTransactionId
- The transaction ID of the request, if any. This is used for logging.
-
-
Method Details
-
getTopicUrl
-
getResources
-
getSubscriptionTopicFilterMatcher
-
getRequestType
-
getInMemoryMatchResult
-
getRequestPartitionId
-
getTransactionId
-