cdac.medinfo.sdk.hl7282.hl7net.commons

## Interface IServerQueryCancellation

- All Known Implementing Classes:
    ServerSideQCNAgent

      public interface IServerQueryCancellation

  IServerQueryCancellation is the interface for Sending Responses and Receiving Queries. The class that is interested in Sending Responses and Receiving Queries implements this interface, This interface tells about the canceled responses and query id for which no action is performed(i.e Unprocessed Queries).

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ISingleCollection<java.lang.String>` | `getCancelledResponses()` Get all the canceled responses for which user will not generate response for it.
    `boolean` | `processReceive(ISegmentSet objSegmentSet)` Keep track for the Queries which are received by server.
    `boolean` | `processSend(ISegmentSet objSegmentSet)` Keeps track for the Responses which are Send by Server.

- - ### Method Detail

    - #### processSend

          boolean processSend(ISegmentSet objSegmentSet)

      Keeps track for the Responses which are Send by Server.
      Parameters:
        `objSegmentSet` - Object of Segment Set which send by Server.
      Returns:
        this will return true in case of Response is canceled or Invalid Response.

    - #### processReceive

          boolean processReceive(ISegmentSet objSegmentSet)

      Keep track for the Queries which are received by server.
      Parameters:
        `objSegmentSet` - Object of Segment Set received by server.
      Returns:
        true if received query is valid QCN_J01. else canceled query is received one more time.

    - #### getCancelledResponses

          ISingleCollection<java.lang.String> getCancelledResponses()

      Get all the canceled responses for which user will not generate response for it.
      Returns:
        ISingleCollection collection of Query id.