Class SpringCacheUnsolicitedFragmentationStorage
java.lang.Object
org.openehealth.ipf.commons.ihe.hl7v2.storage.SpringCacheUnsolicitedFragmentationStorage
- All Implemented Interfaces:
UnsolicitedFragmentationStorage
public class SpringCacheUnsolicitedFragmentationStorage
extends Object
implements UnsolicitedFragmentationStorage
CachingUnsolicitedFragmentationStorage that uses a Spring cache abstraction
- Since:
- 3.2
- Author:
- Christian Ohr
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAndRemove
(String key) Returns the fragment accumulator which corresponds to the given key and removes it from the storage.void
put
(String key, StringBuilder accumulator) Puts a fragment accumulator into the storage.
-
Constructor Details
-
SpringCacheUnsolicitedFragmentationStorage
-
-
Method Details
-
put
Description copied from interface:UnsolicitedFragmentationStorage
Puts a fragment accumulator into the storage.- Specified by:
put
in interfaceUnsolicitedFragmentationStorage
- Parameters:
key
- Key consisting of MSH-14/DSC-1, MSH-3-1, MSH-3-2, MSH-3-3.accumulator
- Accumulator to be stored.
-
getAndRemove
Description copied from interface:UnsolicitedFragmentationStorage
Returns the fragment accumulator which corresponds to the given key and removes it from the storage.- Specified by:
getAndRemove
in interfaceUnsolicitedFragmentationStorage
- Parameters:
key
- Key consisting of MSH-14/DCS-1, MSH-3-1, MSH-3-2, MSH-3-3.- Returns:
- Accumulator or
null
when none found.
-