Interface UserSessionListener


public interface UserSessionListener
Implementers of UserSessionListener will be notified when a user has created a trade channel with a particular TradeAdapter. Note that if multiple trade channels are created with the adapter, only one invocation on onUserSessionCreated(String) will be fired.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a user session has been closed with the trade adapter.
    void
    Called when a user session has been created with the trade adapter.
  • Method Details

    • onUserSessionCreated

      void onUserSessionCreated(String username)
      Called when a user session has been created with the trade adapter.
      Parameters:
      username - The username of the user that the session was created for.
    • onUserSessionClosed

      void onUserSessionClosed(String username)
      Called when a user session has been closed with the trade adapter.
      Parameters:
      username - The username of the user that the session was closed for.