public class CachingInteractiveHl7v2ContinuationStorage extends Object implements InteractiveContinuationStorage
Constructor and Description |
---|
CachingInteractiveHl7v2ContinuationStorage(org.springframework.cache.CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(String chainId)
Deletes all fragments which belong to the given query tag.
|
ca.uhn.hl7v2.model.Message |
get(String continuationPointer,
String chainId)
Retrieves a fragment from the storage or
null
when no fragment with the given parameters could be found. |
void |
put(String continuationPointer,
String chainId,
ca.uhn.hl7v2.model.Message fragment)
Puts a fragment into this storage.
|
public CachingInteractiveHl7v2ContinuationStorage(org.springframework.cache.CacheManager cacheManager)
public void put(String continuationPointer, String chainId, ca.uhn.hl7v2.model.Message fragment)
InteractiveContinuationStorage
put
in interface InteractiveContinuationStorage
continuationPointer
- continuation pointer of the fragment —
identifies the fragment in the context of the fragment chain.
Null
values must be allowed.chainId
- unique ID of the fragment chain.
Consisting of the query tag of the fragment (QPD-2) and
MSH-3-1, MSH-3-2, MSH-3-3 of the request.fragment
- fragment as a HAPI message instance.public ca.uhn.hl7v2.model.Message get(String continuationPointer, String chainId)
InteractiveContinuationStorage
null
when no fragment with the given parameters could be found.get
in interface InteractiveContinuationStorage
continuationPointer
- continuation pointer of the fragment —
identifies the fragment in the context of the fragment chain.
Null
values must be allowed.chainId
- unique ID of the fragment chain.
Consists of the query tag of the fragment (QPD-2) and
MSH-3-1, MSH-3-2, MSH-3-3 of the request.null
when none found.public boolean delete(String chainId)
InteractiveContinuationStorage
delete
in interface InteractiveContinuationStorage
chainId
- unique ID of the fragment chain.
Consists of the query tag of the fragment (QPD-2) and
MSH-3-1, MSH-3-2, MSH-3-3 of the request.true
, when some fragments have been
actually deleted, i.e. when the given query tag is known.Copyright © 2018 Open eHealth Foundation. All rights reserved.