Class EhcacheUnsolicitedFragmentationStorage
java.lang.Object
org.openehealth.ipf.commons.ihe.hl7v2.storage.EhcacheUnsolicitedFragmentationStorage
- All Implemented Interfaces:
UnsolicitedFragmentationStorage
public class EhcacheUnsolicitedFragmentationStorage
extends Object
implements UnsolicitedFragmentationStorage
A storage of HL7 v2 unsolicited fragmentation accumulators.
- Author:
- Dmytro Rud
-
Constructor Summary
ConstructorDescriptionEhcacheUnsolicitedFragmentationStorage
(javax.cache.Cache<String, StringBuilder> ehcache) -
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
-
EhcacheUnsolicitedFragmentationStorage
-
-
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.
-