Skip to content

docs: add SessionStateListener reference page#63

Draft
chrjohn with Copilot wants to merge 1 commit into
mainfrom
copilot/sessionstatelistener-docs
Draft

docs: add SessionStateListener reference page#63
chrjohn with Copilot wants to merge 1 commit into
mainfrom
copilot/sessionstatelistener-docs

Conversation

Copilot AI commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Adds a missing reference page for quickfix.SessionStateListener — a default-method interface for in-process session lifecycle hooks (connect, logon, heartbeat, resend, sequence reset, PossDup discard, etc.) that complements the Application interface without requiring coupling to business logic.

Changes

  • docs/session-state-listener.md — new page covering:

    • Full interface definition (all 13 callbacks, correct signatures with SessionID params, including onConnectException, onResendRequestSent, onSequenceResetReceived, onResendRequestSatisfied, and onPossDupMessageDiscarded)
    • Registration pattern via Session.lookupSession() in onCreate
    • Complete example implementation
    • Multiple-listener registration
    • Application vs SessionStateListener comparison table
    • Cross-reference to JMX notifications
  • sidebars.tssession-state-listener inserted into the Developer Guide section between developer-docs and repeating-groups

// Register one or more listeners per session
Session session = Session.lookupSession(sessionId);
session.addStateListener(new MetricsListener());
session.addStateListener(new AlertingListener());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants