cdac.medinfo.sdk.hl7282.hl7net.commons

## Interface IDataNotificationListener

- All Known Implementing Classes:
    ClientSession, UserSession

      public interface IDataNotificationListener

  IDataNotificationListener is the listener interface for receiving Messages. The class that is interested in receiving an IMessages implements this interface, When Message is received by HL7 SDK notifyData is method is invoked for message arrival.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `notifyData(IHL7BatchFile objBatchFile)` Adds Data Notification Listeners to Receive HL7BatchFile.
    `void` | `notifyData(Message objIMessage, EnumErrorCode enumErrorCode)` Adds Data Notification Listeners to Receive Message.

- - ### Method Detail

    - #### notifyData

          void notifyData(IHL7BatchFile objBatchFile)

      Adds Data Notification Listeners to Receive HL7BatchFile.
      Parameters:
        `objBatchFile` - HL7BatchFile that is received as Data.

    - #### notifyData

          void notifyData(Message objIMessage,
                        EnumErrorCode enumErrorCode)
                          throws java.io.IOException

      Adds Data Notification Listeners to Receive Message.
      Parameters:
        `objIMessage` - message that is received as Data.
        `enumErrorCode` - error code received.
      Throws:
        `java.io.IOException` - Signals that an IO Exception has occurred.