public class CachingUnsolicitedFragmentionStorage extends Object implements UnsolicitedFragmentationStorage
Constructor and Description |
---|
CachingUnsolicitedFragmentionStorage(org.springframework.cache.CacheManager cacheManager) |
Modifier and Type | Method and 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.
|
public CachingUnsolicitedFragmentionStorage(org.springframework.cache.CacheManager cacheManager)
public void put(String key, StringBuilder accumulator)
UnsolicitedFragmentationStorage
put
in interface UnsolicitedFragmentationStorage
key
- Key consisting of MSH-14/DSC-1, MSH-3-1, MSH-3-2, MSH-3-3.accumulator
- Accumulator to be stored.public StringBuilder getAndRemove(String key)
UnsolicitedFragmentationStorage
getAndRemove
in interface UnsolicitedFragmentationStorage
key
- Key consisting of MSH-14/DCS-1, MSH-3-1, MSH-3-2, MSH-3-3.null
when none found.Copyright © 2018 Open eHealth Foundation. All rights reserved.