Interface NuggetCliEventSink

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface NuggetCliEventSink
Receives safe operational events emitted by the nugget CLI session.

Events are observational only. Implementations must be bounded, must not throw for ordinary recording failures, and must not expect raw command text, PIN material, endpoint credentials, provider implementation names, stack traces, or hidden target identifiers. The CLI treats sink failures as non-authoritative and preserves the command result.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a sink that discards events.
    void
    record(String event, Map<String,String> metadata)
    Records one safe event.
  • Method Details

    • record

      void record(String event, Map<String,String> metadata)
      Records one safe event.
      Parameters:
      event - stable event name
      metadata - bounded redacted metadata
    • none

      static NuggetCliEventSink none()
      Returns a sink that discards events.
      Returns:
      no-op event sink