Package ca.uhn.fhir.jpa.subscription
Class ResourceModifiedMessagePersistenceSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.subscription.ResourceModifiedMessagePersistenceSvcImpl
- All Implemented Interfaces:
IResourceModifiedMessagePersistenceSvc
public class ResourceModifiedMessagePersistenceSvcImpl
extends Object
implements IResourceModifiedMessagePersistenceSvc
This implementer provides the capability to persist subscription messages for asynchronous submission
to the subscription processing pipeline with the purpose of offering a retry mechanism
upon submission failure (see @link
AsyncResourceModifiedSubmitterSvc
).-
Constructor Summary
ConstructorDescriptionResourceModifiedMessagePersistenceSvcImpl
(ca.uhn.fhir.context.FhirContext theFhirContext, IResourceModifiedDao theResourceModifiedDao, DaoRegistry theDaoRegistry, HapiTransactionService theHapiTransactionService) -
Method Summary
Modifier and TypeMethodDescriptioncreateResourceModifiedMessageFromEntityWithoutInflation
(IPersistedResourceModifiedMessage thePersistedResourceModifiedMessage) boolean
deleteByPK
(IPersistedResourceModifiedMessagePK theResourceModifiedPK) org.springframework.data.domain.Page
<IPersistedResourceModifiedMessage> findAllOrderedByCreatedTime
(org.springframework.data.domain.Pageable thePageable) long
inflatePersistedResourceModifiedMessage
(ResourceModifiedMessage theResourceModifiedMessage) inflatePersistedResourceModifiedMessageOrNull
(ResourceModifiedMessage theResourceModifiedMessage) protected ResourceModifiedMessage
inflateResourceModifiedMessageFromEntity
(ResourceModifiedEntity theResourceModifiedEntity) persist
(ResourceModifiedMessage theMsg)
-
Constructor Details
-
ResourceModifiedMessagePersistenceSvcImpl
public ResourceModifiedMessagePersistenceSvcImpl(ca.uhn.fhir.context.FhirContext theFhirContext, IResourceModifiedDao theResourceModifiedDao, DaoRegistry theDaoRegistry, HapiTransactionService theHapiTransactionService)
-
-
Method Details
-
findAllOrderedByCreatedTime
public org.springframework.data.domain.Page<IPersistedResourceModifiedMessage> findAllOrderedByCreatedTime(org.springframework.data.domain.Pageable thePageable) - Specified by:
findAllOrderedByCreatedTime
in interfaceIResourceModifiedMessagePersistenceSvc
-
persist
- Specified by:
persist
in interfaceIResourceModifiedMessagePersistenceSvc
-
inflatePersistedResourceModifiedMessage
public ResourceModifiedMessage inflatePersistedResourceModifiedMessage(ResourceModifiedMessage theResourceModifiedMessage) - Specified by:
inflatePersistedResourceModifiedMessage
in interfaceIResourceModifiedMessagePersistenceSvc
-
inflatePersistedResourceModifiedMessageOrNull
public Optional<ResourceModifiedMessage> inflatePersistedResourceModifiedMessageOrNull(ResourceModifiedMessage theResourceModifiedMessage) - Specified by:
inflatePersistedResourceModifiedMessageOrNull
in interfaceIResourceModifiedMessagePersistenceSvc
-
createResourceModifiedMessageFromEntityWithoutInflation
public ResourceModifiedMessage createResourceModifiedMessageFromEntityWithoutInflation(IPersistedResourceModifiedMessage thePersistedResourceModifiedMessage) - Specified by:
createResourceModifiedMessageFromEntityWithoutInflation
in interfaceIResourceModifiedMessagePersistenceSvc
-
getMessagePersistedCount
- Specified by:
getMessagePersistedCount
in interfaceIResourceModifiedMessagePersistenceSvc
-
deleteByPK
- Specified by:
deleteByPK
in interfaceIResourceModifiedMessagePersistenceSvc
-
inflateResourceModifiedMessageFromEntity
protected ResourceModifiedMessage inflateResourceModifiedMessageFromEntity(ResourceModifiedEntity theResourceModifiedEntity)
-