InMemoryAgentProcessRepository

class InMemoryAgentProcessRepository(properties: ProcessRepositoryProperties = ProcessRepositoryProperties()) : AgentProcessRepository

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 save(agentProcess: AgentProcess): AgentProcess
Link copied to clipboard
fun size(): Int

Get current size of the repository for testing purposes.