InMemoryAgentProcessRepository

In-memory implementation of AgentProcessRepository with configurable window size to prevent memory overflow by evicting the oldest entries when the limit is reached.

Constructors

Link copied to clipboard
constructor(properties: ProcessRepositoryProperties = ProcessRepositoryProperties())

Functions

Link copied to clipboard
fun clear(): <Error class: unknown class>

Clear all entries from the repository for testing purposes.

Link copied to clipboard
open override fun delete(agentProcess: AgentProcess)
Link copied to clipboard
open override fun findById(id: String): AgentProcess?
Link copied to clipboard
open override fun findByParentId(parentId: String): List<AgentProcess>

Find all child processes for the given parent process ID.

Link copied to clipboard
override fun save(agentProcess: AgentProcess): AgentProcess

Save a new agent process. This method checks if the process is ephemeral and logs an error if persistence is attempted. Non-ephemeral processes are delegated to doSave.

Link copied to clipboard
fun size(): Int

Get current size of the repository for testing purposes.

Link copied to clipboard
override fun update(agentProcess: AgentProcess)

Update an existing agent process. This method checks if the process is ephemeral and logs an error if persistence is attempted. Non-ephemeral processes are delegated to doUpdate.