Interface InteractiveContinuationStorage

All Known Implementing Classes:
EhcacheInteractiveContinuationStorage, SpringCacheInteractiveContinuationStorage

public interface InteractiveContinuationStorage
Interface for storages of HL7 v2 interactive continuation fragments.
Author:
Dmytro Rud
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    delete(String chainId)
    Deletes all fragments which belong to the given query tag.
    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, Message fragment)
    Puts a fragment into this storage.
  • Method Details

    • put

      void put(String continuationPointer, String chainId, Message fragment)
      Puts a fragment into this storage.
      Parameters:
      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.
    • get

      Message get(String continuationPointer, String chainId)
      Retrieves a fragment from the storage or null when no fragment with the given parameters could be found.
      Parameters:
      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.
      Returns:
      fragment as a HAPI message instance or null when none found.
    • delete

      boolean delete(String chainId)
      Deletes all fragments which belong to the given query tag.
      Parameters:
      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.
      Returns:
      true, when some fragments have been actually deleted, i.e. when the given query tag is known.