Interface D2SessionEventsListener

  • All Known Subinterfaces:
    D2SessionEventsListener4


    public interface D2SessionEventsListener
    Listener interface for receiving asynchronous events about D2Session instance.
    • Method Detail

      • onClose

        void onClose​(CloseReason reason)
        Called when session is being closed.
        Parameters:
        reason - reason for session being closed
      • onRedundancyStateChanged

        void onRedundancyStateChanged​(RedundancyStateType redundancyState)
        Called when D2000 kernel redundancy state has been changed. It happens when multiple instances of kernel are joined in redundancy group and state of being "hot" is transferred from one instance to another.

        Note: While redundancyStateChange is being executed D2Session.getRedundancyState() returns previous state. It changes to the current state immediately after this call returns.

        Parameters:
        redundancyState - current state of kernel that the session is attached to
      • onRTIReceived

        void onRTIReceived​(java.lang.String command)
        Called when asynchronous RTI command is received.
        Parameters:
        command - raw command string
      • onSessionCreated

        void onSessionCreated​(D2Session session)
        Called when new session is created.
        Parameters:
        session - new session instance
      • onTerminateRequest

        void onTerminateRequest​()
        Called when kernel issues terminate request to the current session instance.