Class CaptureManager

java.lang.Object
com.shaft.capture.runtime.CaptureManager
All Implemented Interfaces:
AutoCloseable

public final class CaptureManager extends Object implements AutoCloseable
Thread-safe local lifecycle API shared by CLI and MCP capture controls.
  • Constructor Details

    • CaptureManager

      public CaptureManager()
      Creates the default managed recorder lifecycle.
  • Method Details

    • start

      public CaptureStatus start(CaptureStartRequest request)
      Starts one managed browser capture.
      Parameters:
      request - validated start request
      Returns:
      active recorder status
    • status

      public CaptureStatus status()
      Returns the latest safe status without captured values.
      Returns:
      recorder status
    • checkpoint

      public CaptureStatus checkpoint(String description, Checkpoint.CheckpointKind kind)
      Adds a human-review checkpoint to the active session.
      Parameters:
      description - checkpoint description
      kind - checkpoint kind
      Returns:
      updated status
    • stop

      public CaptureStatus stop(boolean discard)
      Stops the active session.
      Parameters:
      discard - whether to remove capture artifacts after clean shutdown
      Returns:
      final status
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable