Interface UnsolicitedFragmentationStorage
- All Known Implementing Classes:
EhcacheUnsolicitedFragmentationStorage
,SpringCacheUnsolicitedFragmentationStorage
public interface UnsolicitedFragmentationStorage
Interface for storages of of HL7 v2 unsolicited fragmentation accumulators.
- Author:
- Dmytro Rud
-
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.
-
Method Details
-
put
Puts a fragment accumulator into the storage.- Parameters:
key
- Key consisting of MSH-14/DSC-1, MSH-3-1, MSH-3-2, MSH-3-3.accumulator
- Accumulator to be stored.
-
getAndRemove
Returns the fragment accumulator which corresponds to the given key and removes it from the storage.- 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.
-