Interface MamaTransportListener


  • public interface MamaTransportListener
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onAccept​(short cause, java.lang.Object platformInfo)
      Invoked on the publisher when the transport accepts a connection.
      void onAcceptReconnect​(short cause, java.lang.Object platformInfo)
      Invoked on the publisher when the transport accepts a reconnection.
      void onConnect​(short cause, java.lang.Object platformInfo)
      Invoked on the subscriber when the transport connects.
      void onDisconnect​(short cause, java.lang.Object platformInfo)
      Invoked when transport disconnects.
      void onNamingServiceConnect​(short cause, java.lang.Object platformInfo)
      Invoked on the subscriber on connection to the naming service.
      void onNamingServiceDisconnect​(short cause, java.lang.Object platformInfo)
      Invoked on the subscriber on disconnection to the naming service.
      void onPublisherDisconnect​(short cause, java.lang.Object platformInfo)
      Invoked on the subscriber when the transport disconnects from the publisher.
      void onQuality​(short cause, java.lang.Object platformInfo)
      Invoked on data quality event.
      void onReconnect​(short cause, java.lang.Object platformInfo)
      Invoked when transport reconnects.
    • Method Detail

      • onDisconnect

        void onDisconnect​(short cause,
                          java.lang.Object platformInfo)
        Invoked when transport disconnects.
        Parameters:
        cause - The cause of the transport disconnection
        platformInfo - Info associated with the transport disconnection The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported: tibrv: provides the String object version of the tibrv advisory message Wombat Middleware (JNI only)
      • onReconnect

        void onReconnect​(short cause,
                         java.lang.Object platformInfo)
        Invoked when transport reconnects.
        Parameters:
        cause - The cause of the transport reconnection
        platformInfo - Info associated with the transport reconnection The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported: tibrv: provides the String object version of the tibrv advisory message Wombat Middleware
      • onQuality

        void onQuality​(short cause,
                       java.lang.Object platformInfo)
        Invoked on data quality event.
        Parameters:
        cause - The cause of the data quality event
        platformInfo - Info associated with the data quality event The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported: tibrv: provides the String object version of the tibrv advisory message Wombat Middleware
      • onConnect

        void onConnect​(short cause,
                       java.lang.Object platformInfo)
        Invoked on the subscriber when the transport connects.
        Parameters:
        cause - The cause of the transport connection
        platformInfo - Info associated with the transport connection The following middlewares are supported: Wombat Middleware
      • onAccept

        void onAccept​(short cause,
                      java.lang.Object platformInfo)
        Invoked on the publisher when the transport accepts a connection.
        Parameters:
        cause - The cause of the transport connection
        platformInfo - Info associated with the transport connection The following middlewares are supported: Wombat Middleware
      • onAcceptReconnect

        void onAcceptReconnect​(short cause,
                               java.lang.Object platformInfo)
        Invoked on the publisher when the transport accepts a reconnection.
        Parameters:
        cause - The cause of the reconnection
        platformInfo - Info associated with the reconnection The following middlewares are supported: Wombat Middleware
      • onPublisherDisconnect

        void onPublisherDisconnect​(short cause,
                                   java.lang.Object platformInfo)
        Invoked on the subscriber when the transport disconnects from the publisher.
        Parameters:
        cause - The cause of the disconnection
        platformInfo - Info associated with the disconnection The following middlewares are supported: Wombat Middleware
      • onNamingServiceConnect

        void onNamingServiceConnect​(short cause,
                                    java.lang.Object platformInfo)
        Invoked on the subscriber on connection to the naming service.
        Parameters:
        cause - The cause of the connection
        platformInfo - Info associated with the connection The following middlewares are supported: Wombat Middleware
      • onNamingServiceDisconnect

        void onNamingServiceDisconnect​(short cause,
                                       java.lang.Object platformInfo)
        Invoked on the subscriber on disconnection to the naming service.
        Parameters:
        cause - The cause of the disconnection
        platformInfo - Info associated with the disconnection The following middlewares are supported: Wombat Middleware