Interface McpSubscriptionEventRegistration

All Superinterfaces:
AutoCloseable

Thread-safe listener registration returned by an MCP subscription-event or task-event publisher.

Closing a registration is idempotent. It unsubscribes only its listener and does not close the application-owned publisher. A delivery already selected or in flight when close takes effect may begin or finish after close() returns; no later delivery may be selected for that registration. Soklet invokes close() asynchronously and never overlaps invocations for the same registration. If an invocation throws, Soklet may retry it until one invocation succeeds; after a successful invocation, Soklet does not invoke it again. An in-flight invocation may outlive the server's bounded shutdown wait, in which case cleanup remains residual state and restart cannot proceed until the invocation completes successfully.

Author:
Mark Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Idempotently unregisters the associated listener.
  • Method Details

    • close

      void close()
      Idempotently unregisters the associated listener.
      Specified by:
      close in interface AutoCloseable