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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringBuilder
getAndRemove(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 Detail
-
put
void put(String key, StringBuilder accumulator)
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
StringBuilder getAndRemove(String key)
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.
-
-