Class SpringCacheInteractiveContinuationStorage
java.lang.Object
org.openehealth.ipf.commons.ihe.hl7v2.storage.SpringCacheInteractiveContinuationStorage
- All Implemented Interfaces:
InteractiveContinuationStorage
public class SpringCacheInteractiveContinuationStorage
extends Object
implements InteractiveContinuationStorage
InteractiveContinuationStorage that uses a Spring cache abstraction
- Since:
- 3.2
- Author:
- Christian Ohr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeletes all fragments which belong to the given query tag.Retrieves a fragment from the storage ornullwhen no fragment with the given parameters could be found.voidPuts a fragment into this storage.
-
Constructor Details
-
SpringCacheInteractiveContinuationStorage
-
-
Method Details
-
put
Description copied from interface:InteractiveContinuationStoragePuts a fragment into this storage.- Specified by:
putin interfaceInteractiveContinuationStorage- Parameters:
continuationPointer- continuation pointer of the fragment — identifies the fragment in the context of the fragment chain.Nullvalues must be allowed.chainId- unique ID of the fragment chain. Consisting of the query tag of the fragment (QPD-2) and MSH-3-1, MSH-3-2, MSH-3-3 of the request.fragment- fragment as a HAPI message instance.
-
get
Description copied from interface:InteractiveContinuationStorageRetrieves a fragment from the storage ornullwhen no fragment with the given parameters could be found.- Specified by:
getin interfaceInteractiveContinuationStorage- Parameters:
continuationPointer- continuation pointer of the fragment — identifies the fragment in the context of the fragment chain.Nullvalues must be allowed.chainId- unique ID of the fragment chain. Consists of the query tag of the fragment (QPD-2) and MSH-3-1, MSH-3-2, MSH-3-3 of the request.- Returns:
- fragment as a HAPI message instance or
nullwhen none found.
-
delete
Description copied from interface:InteractiveContinuationStorageDeletes all fragments which belong to the given query tag.- Specified by:
deletein interfaceInteractiveContinuationStorage- Parameters:
chainId- unique ID of the fragment chain. Consists of the query tag of the fragment (QPD-2) and MSH-3-1, MSH-3-2, MSH-3-3 of the request.- Returns:
true, when some fragments have been actually deleted, i.e. when the given query tag is known.
-