接口 PlanStorage

所有已知实现类:
InMemoryPlanStorage

public interface PlanStorage
Storage interface for persisting and retrieving plans.

Implementations can store plans in memory, database, or any other persistent storage.

  • 方法概要

    修饰符和类型
    方法
    说明
    reactor.core.publisher.Mono<Void>
    addPlan(Plan plan)
    Add a plan to storage.
    reactor.core.publisher.Mono<Plan>
    getPlan(String planId)
    Get a plan by its ID.
    reactor.core.publisher.Mono<List<Plan>>
    Get all plans from storage.
  • 方法详细资料

    • addPlan

      reactor.core.publisher.Mono<Void> addPlan(Plan plan)
      Add a plan to storage.
      参数:
      plan - The plan to store
      返回:
      Mono that completes when the plan is stored
    • getPlan

      reactor.core.publisher.Mono<Plan> getPlan(String planId)
      Get a plan by its ID.
      参数:
      planId - The plan ID
      返回:
      Mono emitting the plan, or empty if not found
    • getPlans

      reactor.core.publisher.Mono<List<Plan>> getPlans()
      Get all plans from storage.
      返回:
      Mono emitting a list of all plans